Keep RO Link for RO Images
Changed AddRtfText to public Center figures in the PDF Added debug output for figures.
This commit is contained in:
@@ -761,11 +761,15 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
else if (InsType == E_ImageSource.RoFigure)
|
||||
{
|
||||
DisplayText vlntxt = new DisplayText(MyItemInfo, E_EditPrintMode.Edit, E_ViewMode.View, false, E_FieldToEdit.Text, true, null, null, false);
|
||||
if (MyStepRTB.OrigDisplayText == null)
|
||||
{
|
||||
DisplayText vlntxt = new DisplayText(MyItemInfo, E_EditPrintMode.Edit, E_ViewMode.View, false, E_FieldToEdit.Text, true, null, null, false);
|
||||
MyStepRTB.OrigDisplayText = vlntxt;
|
||||
}
|
||||
if (MyStepRTB.Text == "")
|
||||
{
|
||||
MyStepRTB.AddRtfText(vlntxt.StartText);
|
||||
}
|
||||
bool success = MyStepRTB.OrigDisplayText.Save((RichTextBox)MyStepRTB);
|
||||
if (success && _newSizeHt != 0)
|
||||
{
|
||||
|
@@ -1047,7 +1047,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
return string.Format("[StepRTB {0},{1},{2}]", MyItemInfo.ItemID, MyItemInfo.DisplayNumber, MyItemInfo.DisplayText);
|
||||
}
|
||||
private void AddRtfText(string txt)
|
||||
public void AddRtfText(string txt)
|
||||
{
|
||||
//Console.WriteLine("ItemID:{0}", MyItemInfo.ItemID);
|
||||
//if(MyItemInfo.ItemID==10256)
|
||||
|
Reference in New Issue
Block a user