From 9a48273fd4aaff2a18ce77b4362f389070aab519 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Fri, 28 Oct 2011 09:12:49 +0000 Subject: [PATCH] Fixed issue with drawing label --- ede-panel/applets/taskbar/TaskButton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ede-panel/applets/taskbar/TaskButton.cpp b/ede-panel/applets/taskbar/TaskButton.cpp index 3531349..cb4cfc0 100644 --- a/ede-panel/applets/taskbar/TaskButton.cpp +++ b/ede-panel/applets/taskbar/TaskButton.cpp @@ -115,7 +115,7 @@ void TaskButton::draw(void) { fl_color(labelcolor()); lw = lh = 0; - fl_measure(label(), lw, lh, align()); + fl_measure(label(), lw, lh, 0); /* use clipping so long labels do not be drawn on the right border, which looks ugly */ fl_push_clip(x() + Fl::box_dx(box()), @@ -123,8 +123,8 @@ void TaskButton::draw(void) { w() - Fl::box_dw(box()) - 5, h() - Fl::box_dh(box())); - Y = (y() + h() / 2) - (lh / 2); - fl_draw(label(), X, Y, lw, lh, align(), 0, 0); + Y = (y() + h() / 2) - (lh / 2); + fl_draw(label(), X, Y, lw, lh, align(), 0, 0); fl_pop_clip(); }