INTEGRATION: CWS sb82 (1.21.38); FILE MERGED

2007/11/08 10:13:08 sb 1.21.38.1: #i83412# Avoid warnings about switch cases that are not valid enum values (wntmsci11).
This commit is contained in:
Rüdiger Timm 2007-11-13 14:20:46 +00:00
parent c89120c13b
commit 0032207c95

View file

@ -4,9 +4,9 @@
*
* $RCSfile: textedit.cxx,v $
*
* $Revision: 1.21 $
* $Revision: 1.22 $
*
* last change: $Author: hr $ $Date: 2007-06-27 14:16:40 $
* last change: $Author: rt $ $Date: 2007-11-13 15:20:46 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -314,7 +314,7 @@ void TextEditImp::ImpDoHighlight( const String& rSource, ULONG nLineOff )
SbTextType eCol = r.eType;
Color aColor;
ULONG nLine = nLineOff+r.nLine-1; // -1, weil Basic bei 1 beginnt
switch ( eCol )
switch ( +eCol )
{
case SB_KEYWORD:
aColor = Color( COL_BLUE );