B2017-148 Fix MSWord XY Plot commands. Replace left and right double quotes with normal double quotes
This commit is contained in:
parent
a4a9fb1d47
commit
b8224bbc08
@ -426,7 +426,7 @@ namespace XYPlots
|
|||||||
StringBuilder Lbuff = new StringBuilder();
|
StringBuilder Lbuff = new StringBuilder();
|
||||||
retval = NextChar();
|
retval = NextChar();
|
||||||
if (retval != '"' && retval != '\x1C') // open double quote
|
if (retval != '"' && retval != '\x1C') // open double quote
|
||||||
MessageBox.Show("Double Quote not found", "String value syntax problem");
|
MessageBox.Show("Double Quote not found", "Syntax problem in XY Plot");
|
||||||
retval = NextChar();
|
retval = NextChar();
|
||||||
while (retval != 0 && retval != '\n')
|
while (retval != 0 && retval != '\n')
|
||||||
{
|
{
|
||||||
@ -1873,6 +1873,9 @@ namespace XYPlots
|
|||||||
/// <param name="PlotCommands">Plot Commands</param>
|
/// <param name="PlotCommands">Plot Commands</param>
|
||||||
public XYPlot(string PlotCommands)
|
public XYPlot(string PlotCommands)
|
||||||
{
|
{
|
||||||
|
// MSWord enters left and right double-quotes when you press the double-quote key
|
||||||
|
//B2017 - Replace left and right double-quotes with normal double-quotes
|
||||||
|
PlotCommands = PlotCommands.Replace('\u201C', '"').Replace('\u201D', '"');
|
||||||
LoadBuffFromString(PlotCommands);
|
LoadBuffFromString(PlotCommands);
|
||||||
Setup();
|
Setup();
|
||||||
//#if DEBUG
|
//#if DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user