Kaydet (Commit) fac166ab authored tarafından Noel Grandin's avatar Noel Grandin

remove unused BOTTOM from RenderAlign enum

Change-Id: Ifdef59d0a3c6e5d030a1b34f6157331208e071ea
üst e48f0084
......@@ -31,7 +31,7 @@ protected:
public:
enum class RenderAlign
{
TOP, CENTER, BOTTOM
TOP, CENTER
};
StylePreviewRenderer(const SfxObjectShell& rShell,
......
......@@ -210,11 +210,6 @@ bool CommonStylePreviewRenderer::render(const Rectangle& aRectangle, RenderAlign
if (aRectangle.GetHeight() > aPixelSize.Height())
aFontDrawPosition.Y() += (aRectangle.GetHeight() - aPixelSize.Height()) / 2;
}
else if (eRenderAlign == RenderAlign::BOTTOM)
{
if (aRectangle.GetHeight() > aPixelSize.Height())
aFontDrawPosition.Y() += aRectangle.GetHeight() - aPixelSize.Height();
}
mrOutputDev.DrawText(aFontDrawPosition, rText);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment