Commit 48f0c341 authored by Cedric Roux's avatar Cedric Roux

maybe bugfix, maybe useless: return wanted size if allocated size

is zero in get_dimensions for xy_plot
parent 69f14c37
......@@ -280,8 +280,13 @@ void xy_plot_get_dimensions(gui *_gui, widget *_this, int *width, int *height)
glock(g);
if (this->common.width == 0 || this->common.height == 0) {
*width = this->wanted_width;
*height = this->wanted_height;
} else {
*width = this->common.width - this->vrule_width;
*height = this->common.height - this->label_height * 2;
}
gunlock(g);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment