SunOS cosmetic changes

Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 4dabbe71b0)
r14.1.x
Denis Kozadaev 1 year ago committed by Michele Calgaro
parent 9afce99921
commit 8b02e37929
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1,5 +1,8 @@
#include <tqintdict.h>
#include <stdio.h>
#ifdef Q_OS_SOLARIS
#include <strings.h> /* index(), rindex() */
#endif
#include <tqstringlist.h>
#include <tqstrlist.h>
#include <tqtextstream.h>

@ -1893,7 +1893,7 @@ void AssociationWidget::constrainTextPos(int &textX, int &textY,
const int y0 = p0.y();
const int x1 = p1.x();
const int y1 = p1.y();
double r = sqrt((x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)) / 2;
double r = sqrt((double)(x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)) / 2;
if (textWidth > r)
r = textWidth;
// swap textCenter{X,Y} to convert from TQt coord.system.

Loading…
Cancel
Save