Kaydet (Commit) ab5cd27a authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS vcl47 (1.34.160); FILE MERGED

2005/11/25 10:49:48 hdu 1.34.160.1: #i51037# fix off by one
üst d756a159
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: charmap.cxx,v $ * $RCSfile: charmap.cxx,v $
* *
* $Revision: 1.34 $ * $Revision: 1.35 $
* *
* last change: $Author: rt $ $Date: 2005-09-08 20:41:13 $ * last change: $Author: hr $ $Date: 2006-01-26 18:03:55 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -324,7 +324,7 @@ int SvxShowCharSet::FirstInView( void ) const ...@@ -324,7 +324,7 @@ int SvxShowCharSet::FirstInView( void ) const
int SvxShowCharSet::LastInView( void ) const int SvxShowCharSet::LastInView( void ) const
{ {
ULONG nIndex = FirstInView(); ULONG nIndex = FirstInView();
nIndex += ROW_COUNT * COLUMN_COUNT; nIndex += ROW_COUNT * COLUMN_COUNT - 1;
if( nIndex > maFontCharMap.GetCharCount() - 1 ) if( nIndex > maFontCharMap.GetCharCount() - 1 )
nIndex = maFontCharMap.GetCharCount() - 1; nIndex = maFontCharMap.GetCharCount() - 1;
return nIndex; return nIndex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment