Browse Source

Fehler im textfeld behoben

Kolja Strohm 5 years ago
parent
commit
616ab2ffb7
1 changed files with 1 additions and 1 deletions
  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 )