sc/source/ui/view/cellsh.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 4ecfcfebbabb950654f699f0168fd3823ea60b94
Author: Rodolfo Ribeiro Gomes <[email protected]>
Date: Wed Dec 19 12:06:55 2012 -0200
Little optimization when detecting if there is cell notes to be deleted
Change-Id: I6f7a79459f3d0431adc45f339854b1a9339444c0
Reviewed-on: https://gerrit.libreoffice.org/1415
Reviewed-by: Markus Mohrhard <[email protected]>
Tested-by: Markus Mohrhard <[email protected]>
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 72c8be3..ade336a 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -929,7 +929,10 @@ void ScCellShell::GetState(SfxItemSet &rSet)
if ( nCol <= aRanges[nPos]->aEnd.Col() &&
nRow <= aRanges[nPos]->aEnd.Row()
&& nCol >=
aRanges[nPos]->aStart.Col() && nRow >= aRanges[nPos]->aStart.Row() )
+ {
bEnable = true; //note found
+ break;
+ }
}
}
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits