diff options
author | Beat Gaetzi <beat@FreeBSD.org> | 2015-02-16 20:36:50 +0000 |
---|---|---|
committer | Beat Gaetzi <beat@FreeBSD.org> | 2015-02-16 20:36:50 +0000 |
commit | a017ce5c9f2804e838362513b4952aebeada5cab (patch) | |
tree | 34fb7e72df81877eccc0cb0dcac50d9693c9f0fc /x11-wm/fluxbox/files/patch-src__FbTk__TextButton.cc | |
parent | Update CMake to 3.1.3. (diff) |
- Update to 1.3.7 [1]
- Reassign to ports@
PR: 197693 [1]
Submitted by: Jason Unovitch <jason.unovitch@gmail.com> [1]
Notes
Notes:
svn path=/head/; revision=379106
Diffstat (limited to 'x11-wm/fluxbox/files/patch-src__FbTk__TextButton.cc')
-rw-r--r-- | x11-wm/fluxbox/files/patch-src__FbTk__TextButton.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/x11-wm/fluxbox/files/patch-src__FbTk__TextButton.cc b/x11-wm/fluxbox/files/patch-src__FbTk__TextButton.cc deleted file mode 100644 index fb296d302e19..000000000000 --- a/x11-wm/fluxbox/files/patch-src__FbTk__TextButton.cc +++ /dev/null @@ -1,21 +0,0 @@ ---- src/FbTk/TextButton.cc 2015-01-28 11:12:27.000000000 +0200 -+++ src/FbTk/TextButton.cc 2015-01-28 11:14:03.000000000 +0200 -@@ -143,11 +143,17 @@ - unsigned int textlen = visual.size(); - unsigned int button_width = width(); - unsigned int button_height = height(); -+ const int max_width = static_cast<int>(button_width) - x_offset - -+ m_left_padding - m_right_padding; -+ -+ if (max_width <= bevel()) { -+ return; -+ } - - translateSize(m_orientation, button_width, button_height); - - // horizontal alignment, cut off text if needed -- int align_x = FbTk::doAlignment(button_width - x_offset - m_left_padding - m_right_padding, -+ int align_x = FbTk::doAlignment(max_width, - bevel(), justify(), font(), - visual.data(), visual.size(), - textlen); // return new text len |