summaryrefslogtreecommitdiffstats
path: root/tdeio
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio')
-rw-r--r--tdeio/tdefile/kurlbar.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tdeio/tdefile/kurlbar.cpp b/tdeio/tdefile/kurlbar.cpp
index 2aa79353f..88b050db4 100644
--- a/tdeio/tdefile/kurlbar.cpp
+++ b/tdeio/tdefile/kurlbar.cpp
@@ -214,10 +214,12 @@ void KURLBarItem::paint( TQPainter *p )
p->drawPixmap( margin, yPos, *pm );
if ( !text().isEmpty() ) {
TQFontMetrics fm = p->fontMetrics();
- if ( pm->height() < fm.height() )
+ if ( pm->height() < fm.height() ) {
yPos = fm.ascent() + fm.leading()/2;
- else
- yPos = pm->height()/2 - fm.height()/2 + fm.ascent();
+ }
+ else {
+ yPos = height(box)/2 - fm.height()/2 + fm.ascent() - margin;
+ }
yPos += margin;
int stringWidth = box->width() - pm->width() - 2 - (margin * 2);