Skip to content

Commit 11e4cc1

Browse files
committed
Removed more duplicated code
1 parent 7d18b6b commit 11e4cc1

5 files changed

Lines changed: 0 additions & 12 deletions

File tree

src/EPPlus.Export.ImageRenderer/RenderItems/Shared/TextBodyItem.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ private double GetAlignmentVertical()
243243
break;
244244
//Center means center of a Shape's ENTIRE bounding box height.
245245
//Not center of the Inset GetRectangle
246-
//Not center of the Inset GetRectangle
247246
case eTextAnchoringType.Center:
248247
alignmentY = (MaxHeight - Bounds.Height)/2 + Bounds.Top;
249248
break;

src/EPPlus.Export.ImageRenderer/ShapeDefinitions/ShapeDefinition.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Date Author Change
1717
using System.Diagnostics;
1818
using System.Globalization;
1919
using System.Linq;
20-
using System.Security.Cryptography.Xml;
2120

2221
namespace EPPlusImageRenderer.ShapeDefinitions
2322
{

src/EPPlus.Export.ImageRenderer/Svg/Chart/SvgChartLegend.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ private SvgRenderRectItem GetLegendRectangleAndEntrySize(SvgChart sc, ExcelChart
202202
l.Position == eLegendPosition.TopRight)
203203
{
204204
rect.Left = sc.ChartArea.Rectangle.Width - rect.Width - TopMargin;
205-
rect.Left = sc.ChartArea.Rectangle.Width - rect.Width - TopMargin;
206205
}
207206
else
208207
{

src/EPPlus.Export.ImageRenderer/Svg/Chart/SvgChartPlotarea.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ internal SvgRenderRectItem GetPlotAreaRectangle(SvgChart sc)
3131
{
3232
var pa = sc.Chart.PlotArea;
3333
TopMargin = BottomMargin = LeftMargin = RightMargin = 10.5; //14px
34-
TopMargin = BottomMargin = LeftMargin = RightMargin = 10.5; //14px
3534
var rect = new SvgRenderRectItem(sc, sc.Bounds);
3635
if (pa.Layout.HasLayout)
3736
{

src/EPPlus.Export.ImageRenderer/Svg/Chart/SvgChartTitle.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ internal void InitTextBox(double maxWidth, double maxHeight)
185185
if(_title.Rotation != 0)
186186
{
187187
TextBox.Rotation = _title.Rotation;
188-
TextBox.Rotation = _title.Rotation;
189188
}
190189
if (_title.TextBody.Paragraphs.Count > 0)
191190
{
@@ -203,13 +202,6 @@ internal void InitTextBox(double maxWidth, double maxHeight)
203202
TextBox.BottomMargin = BottomMargin;
204203
TextBox.TextBody.VerticalAlignment = eTextAnchoringType.Top;
205204
Rectangle = (SvgRenderRectItem)TextBox.Rectangle;
206-
207-
TextBox.LeftMargin = LeftMargin;
208-
TextBox.RightMargin = RightMargin;
209-
TextBox.TopMargin = TopMargin;
210-
TextBox.BottomMargin = BottomMargin;
211-
TextBox.TextBody.VerticalAlignment = eTextAnchoringType.Top;
212-
Rectangle = (SvgRenderRectItem)TextBox.Rectangle;
213205
}
214206

215207
public SvgTextBox TextBox

0 commit comments

Comments
 (0)