Commit 8fec7b23 authored by Clément Fauconnier's avatar Clément Fauconnier

preventing bad behavior when playing with eraser

parent 68c7da58
......@@ -2025,7 +2025,7 @@ QRectF UBGraphicsScene::annotationsBoundingRect() const
bool UBGraphicsScene::isEmpty() const
{
return mItemCount == 0;
return mItemCount <= 0; // mItemCount can currently be negative when playing with eraser
}
QGraphicsItem* UBGraphicsScene::setAsBackgroundObject(QGraphicsItem* item, bool pAdaptTransformation, bool pExpand)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment