فهرست منبع

Noch ein fehler behoben

Kolja Strohm 7 سال پیش
والد
کامیت
41e2475303
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      annotationGUI/setids.cpp

+ 2 - 2
annotationGUI/setids.cpp

@@ -200,7 +200,7 @@ void SetIdsView::paintEvent(QPaintEvent *e)
             QPoint mid = m->list.at( i - 1 )->getBoundingBox().center();
             int index;
             ObjectPolygon p = f->getObjectAt( mid, index );
-            if( !p.isNull() )
+            if( !p.isNull() && p->isSelected() )
             {
                 m->list.replace( i, p );
                 m->notifyViews();
@@ -241,7 +241,7 @@ void SetIdsView::mouseReleaseEvent(QMouseEvent *e)
     { // Wäjlt ein Objekt aus, welches die Id zugewiesen bekommen soll
         int index;
         ObjectPolygon p = f->getObjectAt( mousePos, index );
-        if( p.isNull() )
+        if( p.isNull() || !p->isSelected() )
             return;
         if( p->getId() == "-1" && m->id == -1 )
         {