[Libreoffice-commits] core.git: svx/source

Stephan Bergmann sbergman at redhat.com
Tue May 10 16:05:11 UTC 2016


 svx/source/svdraw/svdview.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit bb86fd9e3c75464ac27fa1534e85a5ae236ec484
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue May 10 18:00:41 2016 +0200

    Presumably missing break in switch
    
    In fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import" the case
    SDRDRAG_CROOK fell through to the default branch, but which was irrelevant, as
    the default branch's if-branch would only hit if bCroner || bVertex, in which
    case the SDRDRAG_CROOK's if-branch would already have hit and returned.  Then
    dc1fddc142ab438775e2c1bae4a0e148d263ce0d "INTEGRATION: CWS
    cropmaster2000_DEV300: #i83933# added interactive graphic cropping" moved the
    case SDRDRAG_CROP in between.
    
    Change-Id: I66939fc62416e0a442b02e674d90812ce76f3b2b

diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index 064b2d0..bc0475c 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -1135,6 +1135,7 @@ Pointer SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDevice*
                     if (!IsCrookAllowed(true) && !IsCrookAllowed()) return Pointer(PointerStyle::NotAllowed);
                     return Pointer(PointerStyle::Crook);
                 }
+                break;
             }
 
             case SDRDRAG_CROP:


More information about the Libreoffice-commits mailing list