1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/math/xgfe/files/patch-psOpt.cpp
Alexander Leidinger 7ad012e1d9 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 <marius@alchemy.franken.de>
Approved by:	maintainer
2004-03-30 17:02:58 +00:00

27 lines
978 B
C++

diff -u psOpt.cpp.orig psOpt.cpp
--- psOpt.cpp.orig Tue May 19 05:39:02 1998
+++ psOpt.cpp Thu Oct 30 21:42:04 2003
@@ -88,14 +88,14 @@
void psOpt::setTerm()
{
- string mode = modeList->currentText();
- string color = colorList->currentText();
- string dashed = dashedList->currentText();
- string enhanced = enhancedList->currentText();
- string fontName = fontNameEdit->text();
- string fontSize = fontSizeEdit->text();
- string hSize = horizSize->text();
- string vSize = vertSize->text();
+ string mode = modeList->currentText().ascii();
+ string color = colorList->currentText().ascii();
+ string dashed = dashedList->currentText().ascii();
+ string enhanced = enhancedList->currentText().ascii();
+ string fontName = fontNameEdit->text().ascii();
+ string fontSize = fontSizeEdit->text().ascii();
+ string hSize = horizSize->text().ascii();
+ string vSize = vertSize->text().ascii();
gnuInt->setTermPSmode(mode);
gnuInt->setTermPScolor(color);