guys i have a question about the following.

here i dispatch the funcrequest to insert a table:

+void InsertTableWidget::mouseReleaseEvent(QMouseEvent * event)
+{
+       if (underMouse()) {
+               QString const data = QString("%1 %2").arg(bottom_).arg(right_);
+               
lyxView_.view()->workAreaDispatch(FuncRequest(LFUN_TABULAR_INSERT, 
fromqstr(data) ));
+       }
+       close();
+}


thing is: the table gets inserted but not at the cursor position but at the beginning of the buffer!

any clues?

thanks! edwin

Reply via email to