[patch] trivial kwin geometrytip fix
Stanislav Karchebny
berk at inbox.ru
Mon Dec 1 06:39:06 GMT 2003
* Fix incorrect sprintf() parameters (+%d vs %+d)
* Make it display as
+256,+256
(1020 x 653)
instead of
+256,
+256 (1020 x 653)
Index: geometrytip.cpp
===================================================================
RCS file: /home/kde/kdebase/kwin/geometrytip.cpp,v
retrieving revision 1.9
diff -u -p -r1.9 geometrytip.cpp
--- geometrytip.cpp 11 Nov 2003 18:38:19 -0000 1.9
+++ geometrytip.cpp 30 Nov 2003 11:44:12 -0000
@@ -68,7 +68,7 @@ void GeometryTip::setGeometry( const QRe
h = QMAX( h, 0 ); // in case of isShade() and PBaseSize
QString pos;
- pos.sprintf( "%+d,%+d (<b>%d x %d</b>)",
+ pos.sprintf( "+%d,+%d<br>(<b>%d x %d</b>)",
geom.x(), geom.y(), w, h );
setText( pos );
adjustSize();
--
keep in touch. berkus. -- http://lye.upnet.ru/
More information about the kde-core-devel
mailing list