[Libreoffice-commits] core.git: svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Sep 15 14:16:48 UTC 2018


 svx/source/dialog/fntctrl.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 669a80a9776774e382b66889e2694927069125ff
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Sep 15 13:40:27 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Sep 15 16:16:27 2018 +0200

    if its empty don't set it to empty string
    
    Change-Id: I14e2461141332677c029877f6ab082b6f5dd2010
    Reviewed-on: https://gerrit.libreoffice.org/60524
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 93f168e85d75..e955713f2d50 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -1611,9 +1611,6 @@ void FontPrevWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rect
             }
 
             if (pImpl->maText.isEmpty())
-                pImpl->maText = OUString();
-
-            if (pImpl->maText.isEmpty())
             {   // fdo#58427: still no text? let's try that one...
                 pImpl->maText = makeRepresentativeTextForFont(LATIN, rFont);
             }


More information about the Libreoffice-commits mailing list