diff options
-rw-r--r-- | cui/source/dialogs/screenshotannotationdlg.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index fff5ba896c78..4c13a28ad2d0 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -533,11 +533,7 @@ IMPL_LINK_TYPED(ScreenshotAnnotationDlg_Impl, pictureFrameListener, VclWindowEve { if (mpPicture->IsMouseOver() && mpHilighted) { - if (maSelected.find(mpHilighted) != maSelected.end()) - { - maSelected.erase(mpHilighted); - } - else + if (maSelected.erase(mpHilighted) == 0) { maSelected.insert(mpHilighted); } |