summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-03-07 12:23:33 +0000
committerMalte Timmermann <mt@openoffice.org>2001-03-07 12:23:33 +0000
commit496dd5d78dd759eb2002ef24fb8ca1ccca41a24c (patch)
tree67d560d7e457615c808940d70a36e87f02d6a0a0 /vcl
parentf8a0d17b2b1b5e5eac0c7c9887bc07b1882aa827 (diff)
Assertion in ImplGetTextLines
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/outdev3.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 044fbcf26f2f..813d98661de6 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: outdev3.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: th $ $Date: 2001-02-27 15:38:01 $
+ * last change: $Author: mt $ $Date: 2001-03-07 13:23:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -4585,6 +4585,15 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
}
}
}
+#ifdef DBG_UTIL
+ for ( USHORT nL = 0; nL < rLineInfo.Count(); nL++ )
+ {
+ ImplTextLineInfo* pLine = rLineInfo.GetLine( nL );
+ String aLine( rStr, pLine->GetIndex(), pLine->GetLen() );
+ DBG_ASSERT( aLine.Search( _CR ) == STRING_NOTFOUND, "ImplGetTextLines - Found CR!" );
+ DBG_ASSERT( aLine.Search( _LF ) == STRING_NOTFOUND, "ImplGetTextLines - Found LF!" );
+ }
+#endif
return nMaxLineWidth;
}