From 7ad012e1d9fc4e62211b50c38b45e788773e4611 Mon Sep 17 00:00:00 2001 From: Alexander Leidinger Date: Tue, 30 Mar 2004 17:02:58 +0000 Subject: Unfortunately, the recent changes to math/xgfe (PR 59024) broke its compilation on FreeBSD 4 with GCC 2.95.4: http://bento.freebsd.org/errorlogs/i386-4-latest/xgfe-2.1.log The patch below fixes this. During testing it on FreeBSD 4 and 5 with QT 3.3.1 I noticed that the Advanced -> Multiple Files and Advanced -> Multiple Functions dialogs were broken. I'm not sure if this is a new breakage with QT 3.3.1 or if I didn't notice these when testing the previous patch on FreeBSD 5 with QT 3.2.1. Anyway, these are also fixed and as a precaution PORTREVISION is bumped. The patch also adds SIZE info. PR: 64390 Submitted by: Marius Strobl Approved by: maintainer --- math/xgfe/files/patch-rotation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'math/xgfe/files/patch-rotation.cpp') diff --git a/math/xgfe/files/patch-rotation.cpp b/math/xgfe/files/patch-rotation.cpp index 648b697b1bfe..7831f893951a 100644 --- a/math/xgfe/files/patch-rotation.cpp +++ b/math/xgfe/files/patch-rotation.cpp @@ -7,8 +7,8 @@ diff -u rotation.cpp.orig rotation.cpp { - string scale = plotScalingEdit->text(); - string zscale = zAxisScalingEdit->text(); -+ string scale = string(plotScalingEdit->text()); -+ string zscale = string(zAxisScalingEdit->text()); ++ string scale = plotScalingEdit->text().ascii(); ++ string zscale = zAxisScalingEdit->text().ascii(); gnuInt->setRotationXAxis(xAxisRotation); gnuInt->setRotationZAxis(zAxisRotation); -- cgit v1.2.3