Explorar o código

Fehler im textfeld behoben

Kolja Strohm %!s(int64=6) %!d(string=hai) anos
pai
achega
616ab2ffb7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      TextFeld.cpp

+ 1 - 1
TextFeld.cpp

@@ -119,7 +119,7 @@ void TextFeld::TextStyleManager::setTextStyle( int begin, int end, TextFeld::Tex
 void TextFeld::TextStyleManager::removeText( int begin, int end )
 {
     int sc = textStyle.getEintragAnzahl();
-    for( int i = 0; i < sc; i++ )
+    for( int i = 1; i < sc; i++ )
     {
         TextStyle s = textStyle.get( i );
         if( s.beginIndex >= begin && s.beginIndex < end )