B2016-260: fix check that determines if step’s content is an equation (including paste buffer)
This commit is contained in:
parent
0f63a782c5
commit
085814045c
@ -156,7 +156,7 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
MyStepRTB.VwMode = MyStepPanel.VwMode;
|
MyStepRTB.VwMode = MyStepPanel.VwMode;
|
||||||
Size sz = GetRtfRawSize(MyStepRTB.Rtf);
|
Size sz = GetRtfRawSize(MyStepRTB.Rtf);
|
||||||
if (MyStepRTB.Rtf == null || MyStepRTB.Rtf == "" || !MyStepRTB.Rtf.ToUpper().Contains("EQUAT")) // this is a new insert
|
if (MyStepRTB.Rtf == null || MyStepRTB.Rtf == "" || !MyStepRTB.Rtf.ToUpper().Contains("OBJCLASS EQUATION")) // this is a new insert
|
||||||
{
|
{
|
||||||
sz.Width = 50;
|
sz.Width = 50;
|
||||||
sz.Height = 50;
|
sz.Height = 50;
|
||||||
|
@ -2081,8 +2081,7 @@ namespace Volian.Controls.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
richTextBox1.Paste(frm);
|
richTextBox1.Paste(frm);
|
||||||
// if (richTextBox1.Rtf.ToUpper().Contains("EQUAT") || richTextBox1.Rtf.ToUpper().Contains("VISIO")) hasEquation = true;
|
if (richTextBox1.Rtf.ToUpper().Contains("OBJCLASS EQUATION")) hasEquation = true;
|
||||||
if (richTextBox1.Rtf.ToUpper().Contains("EQUAT")) hasEquation = true;
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -1241,7 +1241,7 @@ namespace Volian.Controls.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
richTextBox1.Paste(frm);
|
richTextBox1.Paste(frm);
|
||||||
if (richTextBox1.Rtf.ToUpper().Contains("EQUAT")) noEquationData = false;
|
if (richTextBox1.Rtf.ToUpper().Contains("OBJCLASS EQUATION")) noEquationData = false;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user