[Libreoffice-commits] core.git: Branch 'feature/sc-notes-storage' - sc/source
Laurent Godard
lgodard.libre at laposte.net
Thu Sep 26 07:33:31 PDT 2013
sc/source/ui/view/printfun.cxx | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
New commits:
commit c5109870fb536a6e938c2b0080b639e9f285b8d8
Author: Laurent Godard <lgodard.libre at laposte.net>
Date: Thu Sep 26 16:32:34 2013 +0200
optim notes loop
Change-Id: I62a680e64493aff86445791ce3e9e1b5bfec4324
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index 953fc70..3b4b382 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -2493,12 +2493,16 @@ long ScPrintFunc::CountNotePages()
if (bDoThis)
{
- for ( SCROW nRow = nStartRow; nRow <= nEndRow; ++nRow )
+ // TODO : notes
+ for ( SCCOL nCol = nStartCol; nCol <= nEndCol; ++nCol )
{
- for ( SCCOL nCol = nStartCol; nCol <= nEndCol; ++nCol )
+ if (pDoc->HasColNotes(nCol, nPrintTab))
{
- if ( pDoc->HasNote(nCol, nRow, nPrintTab) )
- aNotePosList.push_back( ScAddress( nCol, nRow, nPrintTab ) );
+ for ( SCROW nRow = nStartRow; nRow <= nEndRow; ++nRow )
+ {
+ if ( pDoc->HasNote(nCol, nRow, nPrintTab) )
+ aNotePosList.push_back( ScAddress( nCol, nRow, nPrintTab ) );
+ }
}
}
}
More information about the Libreoffice-commits
mailing list