From 5e034c13ee87ddbb9bc86c53cb56a8beb580fefb Mon Sep 17 00:00:00 2001
From: Peter Cock
Date: Tue, 22 May 2018 16:46:02 +0100
Subject: [PATCH] Old style one line gnuplot if statement
Fix proposed in #41 by @bredeson
Support for curly braces (mainly for multiple line if-statements) will not work on older versions of gnuplot.
---
scripts/mummerplot.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/mummerplot.pl b/scripts/mummerplot.pl
index 624a17e..7193aee 100644
--- a/scripts/mummerplot.pl
+++ b/scripts/mummerplot.pl
@@ -1152,7 +1152,7 @@ ($$)
$P_KEY = "unset key";
$P_FORMAT .= "\nset mouse format \"$TFORMAT\"";
$P_FORMAT .= "\nset mouse mouseformat \"$MFORMAT\"";
- $P_FORMAT .= "\nif(GPVAL_VERSION < 5) { set mouse clipboardformat \"$MFORMAT\" }";
+ $P_FORMAT .= "\nif(GPVAL_VERSION < 5) set mouse clipboardformat \"$MFORMAT\"";
}
else {
$P_LS = "set linestyle";