Package: libqtcore4
Version: 4:4.8.6+git64-g5dc8b2b+dfsg-2+b1
Severity: normal
Hello,
I've been hit by a bug where I have essentially this: (ret is QRectF)
ret.setTop(0.1);
ret.setBottom(-0.1);
o Fxd: ret.height() - ret.top() |
ret.bottom() endl;
The output line shows that, if you have a NaN in the coordinates,
then the line above DOES NOT set the top and bottom coordinates
(they stay at NaN):
Fxd: nan - nan | nan
Looking at the code for setTop, it all makes sense, as the pro
inline void QRectF::setTop(qreal pos) { qreal diff = pos - yp; yp +=
diff; h -= diff; }
However, this is very confusing at best... Looking at the
documentation, calling moveTop and then setBottom may be smarter,
but, it really should just work...
Best regards,
Vincent
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libqtcore4:amd64 depends on:
ii libc6 2.19-13
ii libgcc11:4.9.2-8
ii libglib2.0-0 2.42.1-1
ii libstdc++6 4.9.2-8
ii multiarch-support 2.19-13
ii qtcore4-l10n 4:4.8.6+git64-g5dc8b2b+dfsg-2
ii zlib1g 1:1.2.8.dfsg-2+b1
libqtcore4:amd64 recommends no packages.
Versions of packages libqtcore4:amd64 suggests:
ii libicu52 52.1-6
ii libthai0 0.1.21-1
-- no debconf information
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org