Skip to content

Commit

Permalink
Merge pull request #8 from kmesbah/bug/GLabel
Browse files Browse the repository at this point in the history
Fixes a bug calling setFilled on a GLabel
  • Loading branch information
dmalan committed Jul 31, 2015
2 parents 43bb2b0 + b3d3ca6 commit ad71876
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions c/src/gobjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ void setBounds(GObject gobj, double x, double y, double width, double height) {
}

void setFilled(GObject gobj, bool flag) {
// ensure gobj has valid type
if ((gobj->type &
(G3DRECT | GARC | GOVAL | GPOLYGON | GRECT | GROUNDRECT)) == 0) {
error("setFilled: Illegal GObject type");
}
gobj->filled = flag;
setFilledOp(gobj, flag);
}
Expand Down

0 comments on commit ad71876

Please sign in to comment.