mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 00:20:24 +02:00
LCL: GTK3: Prevent range check error in TGtk3DeviceContext.drawText.
git-svn-id: trunk@56784 -
This commit is contained in:
parent
20638d46c7
commit
5f92abd226
@ -1301,7 +1301,7 @@ begin
|
||||
// [dx, dy, x, y, s]));
|
||||
// pango_renderer_activate();
|
||||
// pango_cairo_show_layout(Widget, Layout);
|
||||
ColorToCairoRGB(CurrentTextColor, R, G , B);
|
||||
ColorToCairoRGB(TColor(CurrentTextColor), R, G , B);
|
||||
cairo_set_source_rgb(Widget, R, G, B);
|
||||
// writeln('DRAWINGTEXT ',S,' WITH R=',dbgs(R),' G=',dbgs(G),' B=',dbgs(B));
|
||||
FCurrentFont.Layout^.set_text(PChar(S), length(S));
|
||||
|
Loading…
Reference in New Issue
Block a user