|
@@ -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 )
|
|
|
{
|