Skip to content

Commit

Permalink
Tracker: Drawing artifact (#6513)
Browse files Browse the repository at this point in the history
After switching from outline only selection mode to transparent rectangle,
a drawing artifact could occur because the last selection rectangle wasn't
reset properly.  On following update, Tracker thought a selection rectangle
was still to be shown.
  • Loading branch information
stpere committed Dec 23, 2012
1 parent 46f1daf commit 3fbf5d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kits/tracker/PoseView.cpp
Expand Up @@ -6956,6 +6956,7 @@ BPoseView::_EndSelectionRect()
SetDrawingMode(B_OP_INVERT);
StrokeRect(fSelectionRectInfo.rect, B_MIXED_COLORS);
SetDrawingMode(B_OP_COPY);
fSelectionRectInfo.rect.Set(0, 0, -1, -1);
} else {
Invalidate(fSelectionRectInfo.rect);
fSelectionRectInfo.rect.Set(0, 0, -1, -1);
Expand Down

0 comments on commit 3fbf5d6

Please sign in to comment.