Sfoglia il codice sorgente

Cleanup. Value defaults to 1 so not a true fix.

Martijn Laan 1 anno fa
parent
commit
9fb02cf4de
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Components/ScintEdit.pas

+ 1 - 0
Components/ScintEdit.pas

@@ -481,6 +481,7 @@ procedure TScintEdit.AddIndicator(const StartPos, EndPos: Integer;
 begin
 begin
   CheckPosRange(StartPos, EndPos);
   CheckPosRange(StartPos, EndPos);
   Call(SCI_SETINDICATORCURRENT, IndicatorNumber, 0);
   Call(SCI_SETINDICATORCURRENT, IndicatorNumber, 0);
+  Call(SCI_SETINDICATORVALUE, IndicatorNumber, 1);
   Call(SCI_INDICATORFILLRANGE, StartPos, EndPos - StartPos);
   Call(SCI_INDICATORFILLRANGE, StartPos, EndPos - StartPos);
 end;
 end;