src/editmodes/selectMode.cc

changeset 944
1a6f1997fcbe
parent 861
83426c5fa732
equal deleted inserted replaced
943:af81220741d9 944:1a6f1997fcbe
116 return true; 116 return true;
117 117
118 if (ev->buttons() & Qt::LeftButton) 118 if (ev->buttons() & Qt::LeftButton)
119 { 119 {
120 renderer()->document()->clearSelection(); 120 renderer()->document()->clearSelection();
121 LDObjectPtr obj = renderer()->pickOneObject (ev->x(), ev->y()); 121 LDObject* obj = renderer()->pickOneObject (ev->x(), ev->y());
122 122
123 if (obj != null) 123 if (obj != null)
124 { 124 {
125 AddObjectDialog::staticDialog (obj->type(), obj); 125 AddObjectDialog::staticDialog (obj->type(), obj);
126 g_win->endAction(); 126 g_win->endAction();

mercurial