Browse Source

Fehler im textfeld behoben

Kolja Strohm 5 năm trước cách đây
mục cha
commit
616ab2ffb7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 )
 void TextFeld::TextStyleManager::removeText( int begin, int end )
 {
 {
     int sc = textStyle.getEintragAnzahl();
     int sc = textStyle.getEintragAnzahl();
-    for( int i = 0; i < sc; i++ )
+    for( int i = 1; i < sc; i++ )
     {
     {
         TextStyle s = textStyle.get( i );
         TextStyle s = textStyle.get( i );
         if( s.beginIndex >= begin && s.beginIndex < end )
         if( s.beginIndex >= begin && s.beginIndex < end )