From: <ai...@us...> - 2013-11-16 19:15:21
|
Revision: 12706 http://sourceforge.net/p/plplot/code/12706 Author: airwin Date: 2013-11-16 19:15:17 +0000 (Sat, 16 Nov 2013) Log Message: ----------- In plgesc_string, follow plgesc logic which is to set the default escape if plsc->esc is in its initial state. This change gets rid of lots of plgesc_string warning messages about plsc->esc being invalid. Modified Paths: -------------- trunk/src/plbox.c Modified: trunk/src/plbox.c =================================================================== --- trunk/src/plbox.c 2013-11-16 07:24:58 UTC (rev 12705) +++ trunk/src/plbox.c 2013-11-16 19:15:17 UTC (rev 12706) @@ -2616,6 +2616,11 @@ { static const char *esc_strings = { "!\0#\0$\0%\0&\0*\0@\0^\0~\0" }; int d; + // Follow plgesc logic here which is to set the default escape + // if plsc->esc is in its initial state. + if ( plsc->esc == '\0' ) + plsc->esc = '#'; + switch ( plsc->esc ) { case '!': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |