mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 04:52:35 +02:00
gtk, qt: don't raise any exception when hatches brush is requested but hatch is not set - use solid brush as windows do in this case (fixes bug #0015195)
git-svn-id: trunk@22994 -
This commit is contained in:
parent
714eb90aaa
commit
91640c8d2b
@ -1023,7 +1023,7 @@ begin
|
||||
GObject^.GDIBrushPixmap := gdk_bitmap_create_from_data(
|
||||
nil, pgchar(@HATCH_VERTICAL[0]), 8, 8);
|
||||
else
|
||||
RaiseGDBException('invalid lbHatch');
|
||||
GObject^.GDIBrushFill := GDK_SOLID;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -422,7 +422,7 @@ begin
|
||||
HS_HORIZONTAL: QtBrush.setStyle(QtHorPattern);
|
||||
HS_VERTICAL: QtBrush.setStyle(QtVerPattern);
|
||||
else
|
||||
RaiseGDBException('invalid lbHatch');
|
||||
QtBrush.setStyle(QtSolidPattern);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user