Description: Fix nasty bug leading to invalid eps files.
Origin: Jaroslav Fojtik <Jafojtik@yandex.com>
Forwarded: Patch is from upstream, not needed.
Author: Jaroslav Fojtik <Jafojtik@yandex.com>
Last-Update: 20210318

Index: wp2latex.git/sources.cc/images/vecimage.cc
===================================================================
--- wp2latex.git.orig/sources.cc/images/vecimage.cc	2021-03-18 13:20:12.699391018 +0100
+++ wp2latex.git/sources.cc/images/vecimage.cc	2021-03-18 13:20:12.691391041 +0100
@@ -1068,9 +1068,12 @@
     {
     if(str[len-2]=='(' && str[len-1]==')')
       {
-      if(len>=3 && str[len-3]==' ') len--;	//Remove orphaned space.
-      str = copy(str,0,len-2);
-      return;
+      if(len>=3 && str[len-3]!='\\')		// Is the curly brace preffixed?
+        {
+        if(len>=3 && str[len-3]==' ') len--;	//Remove orphaned space.
+        str = copy(str,0,len-2);
+        return;
+        }
       }
     }
   str += "\nshow";
