From d1a49df6833ff16f5cbaf98534eaae62693e520b Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Thu, 28 Jan 2016 16:31:30 +1100 Subject: vcl: add text alignment functions to ImplFont and FontAttributes ImplFont and FontAttributes now have GetAlignment and SetAlignment, and I have renamed Font::GetAlign to Font::GetAlignment, and Font::SetAlign to Font::SetAlignment. See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor and mutator for font scaling in FontMetric") for reasoning behind patch. Unit test added to vcl/qa/cppunit/font.cxx to test text alignment. Change-Id: I6272c84fc9416c90616d957d1897eba9469fe7ba Reviewed-on: https://gerrit.libreoffice.org/21876 Tested-by: Jenkins Reviewed-by: Chris Sherlock --- cui/source/dialogs/cuicharmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui') diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 467fe8a769dd..b8d28a871a27 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -275,7 +275,7 @@ void SvxShowText::SetFont( const vcl::Font& rFont ) long nWinHeight = GetOutputSizePixel().Height(); maFont = vcl::Font(rFont); maFont.SetWeight(WEIGHT_NORMAL); - maFont.SetAlign(ALIGN_TOP); + maFont.SetAlignment(ALIGN_TOP); maFont.SetSize(PixelToLogic(Size(0, nWinHeight / 2))); maFont.SetTransparent(true); Control::SetFont(maFont); -- cgit