Kaydet (Commit) bdd9d06c authored tarafından Luboš Luňák's avatar Luboš Luňák

incorrect if body alignment

Change-Id: Ic5076bc7be30e72686840c06f1f9b441b774f3ba
üst 6fe0d1b7
......@@ -3237,7 +3237,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
bFrmDrag = sal_False;
if ( !bHandledFlyClick && !bIsDocReadOnly && rSh.IsInsideSelectedObj(aDocPos) &&
0 == rSh.IsSelObjProtected( FLYPROTECT_CONTENT|FLYPROTECT_PARENT ) )
{
/* this is no good, on the one hand GetSelectionType is used as flag field (take a look into the GetSelectionType method)
on the other hand the return value is used in a switch without proper masking (very nice), this must lead to trouble
*/
......@@ -3272,6 +3272,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
((SwDrawTextShell*)rView.GetCurShell())->Init();
return;
}
}
// if the cursor position was corrected or if a Fly
// was selected in ReadOnlyMode, no word selection.
......
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