diff options
Diffstat (limited to 'kio/kfile/kurlbar.cpp')
-rw-r--r-- | kio/kfile/kurlbar.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kio/kfile/kurlbar.cpp b/kio/kfile/kurlbar.cpp index ee79b4e58..5a746ed98 100644 --- a/kio/kfile/kurlbar.cpp +++ b/kio/kfile/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); |