diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-09-07 16:40:20 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-09-08 08:45:25 +0000 |
commit | 3a0d2c51021022233015c3318cfcf26aceb3b650 (patch) | |
tree | fb6e2b3499c7d4b73fb24c075a02ce438c033f0f /include | |
parent | 19347304b2594f28fadf7cefe6aab4fdb5c9047f (diff) |
svx: fix font rendering in the style preview
If the style does not actually have any font items, as is the case for
frame, page and number styles in Writer, the maFont will be
default-initialized and the maPixelSize incorrect.
Avoid using these variables.
(cherry picked from commit 07df816d73884d094f0f56be022aa0b4eff00b2d)
Change-Id: I084cd8faa90a3d53310ceec55e8dae3af3dd586c
Reviewed-on: https://gerrit.libreoffice.org/18383
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/CommonStylePreviewRenderer.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svx/CommonStylePreviewRenderer.hxx b/include/svx/CommonStylePreviewRenderer.hxx index 1e7d54e0c6ae..0a7dd8944cf1 100644 --- a/include/svx/CommonStylePreviewRenderer.hxx +++ b/include/svx/CommonStylePreviewRenderer.hxx @@ -22,7 +22,7 @@ namespace svx class SVX_DLLPUBLIC CommonStylePreviewRenderer : public sfx2::StylePreviewRenderer { - SvxFont maFont; + std::unique_ptr<SvxFont> m_pFont; Color maFontColor; Color maBackgroundColor; Size maPixelSize; |