Commit cc1536f1beedfa1c4b6299a5b93c9eacdef99536

Authored by Scott Klum
1 parent 92c99b0d

Fixed points pop bug

Showing 1 changed file with 1 additions and 1 deletions
openbr/plugins/gui.cpp
... ... @@ -136,7 +136,7 @@ public:
136 136 QMouseEvent *mouseEvent = (QMouseEvent*)event;
137 137  
138 138 if (mouseEvent->button() == Qt::LeftButton) points.append(mouseEvent->pos());
139   - else if (mouseEvent->button() == Qt::RightButton) points.removeLast();
  139 + else if (mouseEvent->button() == Qt::RightButton && !points.isEmpty()) points.removeLast();
140 140  
141 141 QPixmap pixmapBuffer = pixmap;
142 142  
... ...