Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
48f0c341
Commit
48f0c341
authored
May 13, 2016
by
Cedric Roux
Browse files
maybe bugfix, maybe useless: return wanted size if allocated size
is zero in get_dimensions for xy_plot
parent
69f14c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/utils/T/tracer/gui/xy_plot.c
View file @
48f0c341
...
...
@@ -280,8 +280,13 @@ void xy_plot_get_dimensions(gui *_gui, widget *_this, int *width, int *height)
glock
(
g
);
*
width
=
this
->
common
.
width
-
this
->
vrule_width
;
*
height
=
this
->
common
.
height
-
this
->
label_height
*
2
;
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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment