summaryrefslogtreecommitdiffstats
path: root/svx/source/editeng/editobj.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-05-04 08:11:26 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-05-04 08:11:26 +0000
commitc1f39dcf392cd98f1183aa305da78cfac25cb85f (patch)
tree640a12738a1e3ff51a9057ba440372b4b9ae50a6 /svx/source/editeng/editobj.cxx
parentINTEGRATION: CWS impressc03u3 (1.5.34); FILE MERGED (diff)
downloadcore-c1f39dcf392cd98f1183aa305da78cfac25cb85f.tar.gz
core-c1f39dcf392cd98f1183aa305da78cfac25cb85f.zip
INTEGRATION: CWS impressc03u3 (1.22.40); FILE MERGED
2006/04/27 12:33:10 cl 1.22.40.1: #i64360# fixed operator==
Diffstat (limited to 'svx/source/editeng/editobj.cxx')
-rw-r--r--svx/source/editeng/editobj.cxx20
1 files changed, 12 insertions, 8 deletions
diff --git a/svx/source/editeng/editobj.cxx b/svx/source/editeng/editobj.cxx
index 7fb52e6c115d..541962ef42a7 100644
--- a/svx/source/editeng/editobj.cxx
+++ b/svx/source/editeng/editobj.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: editobj.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: vg $ $Date: 2006-04-07 08:17:12 $
+ * last change: $Author: rt $ $Date: 2006-05-04 09:11:26 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -264,14 +264,18 @@ bool ContentInfo::operator==( const ContentInfo& rCompare ) const
(eFamily == rCompare.eFamily ) &&
(aParaAttribs == rCompare.aParaAttribs ) )
{
- USHORT n;
- for( n = 0; n < aAttribs.Count(); n++ )
+ const USHORT nCount = aAttribs.Count();
+ if( nCount == rCompare.aAttribs.Count() )
{
- if( !(*aAttribs.GetObject(n) == *rCompare.aAttribs.GetObject(n)) )
- return false;
- }
+ USHORT n;
+ for( n = 0; n < nCount; n++ )
+ {
+ if( !(*aAttribs.GetObject(n) == *rCompare.aAttribs.GetObject(n)) )
+ return false;
+ }
- return true;
+ return true;
+ }
}
return false;