summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-02-27 12:09:06 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-02-27 12:09:06 +0000
commite33f035f9ea1f45f88cba94ef41fcec650e4e3e7 (patch)
tree07726177dfd2750e792f8b9b1ac14602fd1814d4 /sc/source/ui/docshell
parent69de605294658934c62338bd9da21f3a60156cce (diff)
INTEGRATION: CWS calcwarnings (1.7.100); FILE MERGED
2006/12/01 08:53:27 nn 1.7.100.1: #i69284# warning-free: ui, wntmsci10
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/pagedata.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/pagedata.cxx b/sc/source/ui/docshell/pagedata.cxx
index 300bf76d6fbf..52655351367a 100644
--- a/sc/source/ui/docshell/pagedata.cxx
+++ b/sc/source/ui/docshell/pagedata.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: pagedata.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2006-07-25 09:50:29 $
+ * last change: $Author: vg $ $Date: 2007-02-27 13:09:06 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -138,7 +138,7 @@ void ScPageBreakData::AddPages()
if ( nUsed > 1 )
{
long nPage = pData[0].GetFirstPage();
- for (USHORT i=0; i+1<nUsed; i++)
+ for (USHORT i=0; sal::static_int_cast<size_t>(i+1)<nUsed; i++)
{
nPage += ((long)pData[i].GetPagesX())*pData[i].GetPagesY();
pData[i+1].SetFirstPage( nPage );