diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 42c8c774..b511863a 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -508,7 +508,7 @@ namespace VEPROMS.CSLA.Library LBDocumentClass myDoc = MyApp.Documents.Open(myFile.FullName, false); AdjustMargins(myDocStyle, myDoc, true); LBSelection selxy = FindXyPlot(); - if (selxy != null) + while (selxy != null) { string xyplot = selxy.Text; xyplot = xyplot.Replace("`", "\xB0"); @@ -528,6 +528,7 @@ namespace VEPROMS.CSLA.Library shape.LockAspectRatio = LBMsoTriState.msoTrue; shape.Width = plotRect.Width; selxy.WholeStory(); + selxy = FindXyPlot(); } LBSelection sel = FindRO(); while (sel != null)