Don't use TableCenterPos for AER or RNO Tables

This commit is contained in:
Rich 2015-06-05 15:46:53 +00:00
parent 4aa90267ad
commit 577f35faa3

View File

@ -3856,7 +3856,7 @@ namespace Volian.Print.Library
XOffset = leftMargin + (pageWidth - leftMargin - Width) / 2;
else
{
if (TableCenterPos != 0)
if (!aerTableOrFigure && itemInfo.RNOLevel == 0 && TableCenterPos != 0) // Only adjust TableCenterPos for Non-RNO Cenetered Tables
{
XOffset = TableCenterPos;
XOffset = XOffset - (this.Width / 2) + (float)itemInfo.MyDocStyle.Layout.LeftMargin;