diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-12 14:04:38 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-12 14:04:38 +0000 |
commit | cfd433b23339c5bfa95dbb062588cb11245145a9 (patch) | |
tree | 695c32c0a63c0afd0e05d1d23b459f5d8408d824 /svtools/inc/txtattr.hxx | |
parent | 36daa9508510ebfa3b31b05b482c5d658d32d460 (diff) |
INTEGRATION: CWS sb59 (1.9.300); FILE MERGED
2006/07/25 08:52:48 sb 1.9.300.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'svtools/inc/txtattr.hxx')
-rw-r--r-- | svtools/inc/txtattr.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svtools/inc/txtattr.hxx b/svtools/inc/txtattr.hxx index c5df2014b1f2..69dc42ac5da1 100644 --- a/svtools/inc/txtattr.hxx +++ b/svtools/inc/txtattr.hxx @@ -4,9 +4,9 @@ * * $RCSfile: txtattr.hxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: rt $ $Date: 2005-09-08 14:12:04 $ + * last change: $Author: obo $ $Date: 2006-10-12 15:04:38 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -216,27 +216,27 @@ inline USHORT TextCharAttrib::GetLen() const inline void TextCharAttrib::MoveForward( USHORT nDiff ) { DBG_ASSERT( ((long)mnEnd + nDiff) <= 0xFFFF, "TextCharAttrib: MoveForward?!" ); - mnStart += nDiff; - mnEnd += nDiff; + mnStart = mnStart + nDiff; + mnEnd = mnEnd + nDiff; } inline void TextCharAttrib::MoveBackward( USHORT nDiff ) { DBG_ASSERT( ((long)mnStart - nDiff) >= 0, "TextCharAttrib: MoveBackward?!" ); - mnStart -= nDiff; - mnEnd -= nDiff; + mnStart = mnStart - nDiff; + mnEnd = mnEnd - nDiff; } inline void TextCharAttrib::Expand( USHORT nDiff ) { DBG_ASSERT( ( ((long)mnEnd + nDiff) <= (long)0xFFFF ), "TextCharAttrib: Expand?!" ); - mnEnd += nDiff; + mnEnd = mnEnd + nDiff; } inline void TextCharAttrib::Collaps( USHORT nDiff ) { DBG_ASSERT( (long)mnEnd - nDiff >= (long)mnStart, "TextCharAttrib: Collaps?!" ); - mnEnd -= nDiff; + mnEnd = mnEnd - nDiff; } inline BOOL TextCharAttrib::IsIn( USHORT nIndex ) |