diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-07 10:57:55 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-07 13:53:56 +0100 |
commit | 2aac9c6f235f372f76eae2356f9d196597758bdd (patch) | |
tree | 025c8085123cc5692590cc259def20c340bb61f7 /liblogdiag | |
parent | 847945f0519892b2dbadcfcbff44b629c4c18209 (diff) | |
download | logdiag-2aac9c6f235f372f76eae2356f9d196597758bdd.tar.gz logdiag-2aac9c6f235f372f76eae2356f9d196597758bdd.tar.xz logdiag-2aac9c6f235f372f76eae2356f9d196597758bdd.zip |
Fix drawing of symbol menus.
Diffstat (limited to 'liblogdiag')
-rw-r--r-- | liblogdiag/ld-library-toolbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/liblogdiag/ld-library-toolbar.c b/liblogdiag/ld-library-toolbar.c index b18980f..795ce01 100644 --- a/liblogdiag/ld-library-toolbar.c +++ b/liblogdiag/ld-library-toolbar.c @@ -607,8 +607,8 @@ on_category_toggle (GtkToggleButton *toggle_button, gpointer user_data) item->scale = data->menu_height * 0.5 / MAX (ABS (area.y), ABS (area.y + area.height)) * 0.5; item->width = data->menu_height * 0.5 + item->scale * area.width; - item->dx = item->width * 0.5 + item->scale * (area.width * 0.5 - - MAX (ABS (area.x), ABS (area.x + area.width))); + item->dx = item->width * 0.5 + item->scale + * (area.width * 0.5 - ABS (area.x + area.width)); menu_width += item++->width; } |