FreeBSD Bugzilla – Attachment 152298 Details for
Bug 197150
[patch] x11-wm/fluxbox -- Fix bug: integer underflow in startup phase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
path from http://git.fluxbox.org/fluxbox.git/commit/?id=7b8fd2d81ad80a73564fc9fbb779f47568f12652
patch-src__FbTk__TextButton.cc (text/plain), 918 bytes, created by
Vikash Badal
on 2015-01-28 09:22:42 UTC
(
hide
)
Description:
path from http://git.fluxbox.org/fluxbox.git/commit/?id=7b8fd2d81ad80a73564fc9fbb779f47568f12652
Filename:
MIME Type:
Creator:
Vikash Badal
Created:
2015-01-28 09:22:42 UTC
Size:
918 bytes
patch
obsolete
>--- 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197150
: 152298 |
152403
|
152404
|
152405
|
152406
|
152407
|
152408
|
152409