diff options
author | rathnor <rathnor> | 2003-10-31 20:02:49 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-10-31 20:02:49 (GMT) |
commit | 08089dd064d626cb6d9f65dd201f6f9be5d5751b (patch) | |
tree | 474054c9c2229f1adaa6990682d38d2b8ea02395 /src/FbTk | |
parent | af7deab37956a180996f4420144c484fa7cdb5ed (diff) | |
download | fluxbox_paul-08089dd064d626cb6d9f65dd201f6f9be5d5751b.zip fluxbox_paul-08089dd064d626cb6d9f65dd201f6f9be5d5751b.tar.bz2 |
out-by-one correction
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/TextButton.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc index 4b2d45e..de8fad0 100644 --- a/src/FbTk/TextButton.cc +++ b/src/FbTk/TextButton.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: TextButton.cc,v 1.3 2003/09/14 09:50:01 fluxgen Exp $ | 22 | // $Id: TextButton.cc,v 1.4 2003/10/31 20:02:49 rathnor Exp $ |
23 | 23 | ||
24 | #include "TextButton.hh" | 24 | #include "TextButton.hh" |
25 | #include "Font.hh" | 25 | #include "Font.hh" |
@@ -138,7 +138,7 @@ void TextButton::drawText(int x_offset, int y_offset) { | |||
138 | textlen); // return new text len | 138 | textlen); // return new text len |
139 | 139 | ||
140 | // center text by default | 140 | // center text by default |
141 | int center_pos = height()/2 + font().ascent()/2; | 141 | int center_pos = height()/2 + font().ascent()/2 - 1; |
142 | 142 | ||
143 | font().drawText(backgroundPixmap() == ParentRelative ? window() : m_buffer.drawable(), | 143 | font().drawText(backgroundPixmap() == ParentRelative ? window() : m_buffer.drawable(), |
144 | screenNumber(), | 144 | screenNumber(), |