diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-12 09:38:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-12 20:05:00 +0000 |
commit | af27dabe816666945b02cd31bb6d6f9d84f732c0 (patch) | |
tree | a6372bc551921d94cf00dbd7951c7995fe7ae3f7 /extensions | |
parent | 13cd316bc733fbe37db105dc705b9d172aec8809 (diff) |
mbDragDrawn is always false when queried
Change-Id: Ie8eda3465381eeed62d3271040c1697ef8f6559a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145395
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index 63c8ea79050f..0d27a802cef0 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -77,13 +77,11 @@ private: BitmapEx maPreviewBitmapEx; tools::Rectangle maPreviewRect; - Point maLastUL, maLastBR; Point maTopLeft, maBottomRight; Point maMinTopLeft, maMaxBottomRight; SaneDlg* mpParentDialog; DragDirection meDragDirection; bool mbDragEnable; - bool mbDragDrawn; bool mbIsDragging; public: @@ -92,7 +90,6 @@ public: , mpParentDialog(nullptr) , meDragDirection(TopLeft) , mbDragEnable(false) - , mbDragDrawn(false) , mbIsDragging(false) { } @@ -924,7 +921,6 @@ void ScanPreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rectang // check for sane values rRenderContext.DrawBitmapEx(maPreviewRect.TopLeft(), maPreviewRect.GetSize(), maPreviewBitmapEx); - mbDragDrawn = false; DrawDrag(rRenderContext); } @@ -1189,14 +1185,8 @@ void ScanPreview::DrawDrag(vcl::RenderContext& rRenderContext) rRenderContext.SetRasterOp(RasterOp::Invert); rRenderContext.SetMapMode(MapMode(MapUnit::MapPixel)); - if (mbDragDrawn) - DrawRectangles(rRenderContext, maLastUL, maLastBR); - - maLastUL = maTopLeft; - maLastBR = maBottomRight; DrawRectangles(rRenderContext, maTopLeft, maBottomRight); - mbDragDrawn = true; rRenderContext.SetRasterOp(eROP); rRenderContext.SetMapMode(MapMode(MapUnit::MapAppFont)); } |