Martijn Laan vor 4 Monaten
Ursprung
Commit
13ceeb0fab
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Components/BidiCtrls.pas

+ 1 - 1
Components/BidiCtrls.pas

@@ -215,7 +215,7 @@ begin
   Inc(DrawRect.Left, IW);
   Inc(DrawRect.Top, 15);
   Inc(DrawRect.Left, 5);
-  ACanvas.Font := TNewButton(Control).Font;
+  ACanvas.Font := Control.Font;
   R := DrawRect;
   TextFormat := TTextFormatFlags(Control.DrawTextBiDiModeFlags(DT_LEFT or DT_WORDBREAK or DT_CALCRECT));
   LStyle.DrawText(ACanvas.Handle, Details, BCaption, R, TextFormat, ACanvas.Font.Color); { R is used directly below for measuring, and later also for the note }