[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 9 12:07:38 UTC 2019


 sc/source/ui/pagedlg/tphfedit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7a0d7921dd1151427385e1b07398fffe1550c772
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Dec 5 10:19:19 2019 +0000
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Mon Dec 9 13:06:57 2019 +0100

    Resolves: tdf#129191 text properties in header/footer not set
    
    EditEngine has a non-virtual void SetText( const EditTextObject& rTextObject );
    ScEditEngineDefaulter inherits from EditEngine but does
    
    using EditEngine::SetText
    void            SetText( const EditTextObject& rTextObject );
    
    so has another SetText with the same signature that does something different,
    so calling via an EditEngine pointer gets the unwanted base version
    
    Change-Id: I72e368e6698d5b9a205180cfd2c4f800be7846f8
    Reviewed-on: https://gerrit.libreoffice.org/84545
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index 9a41ffdd5476..01c10d080080 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -161,7 +161,7 @@ void ScEditWindow::SetFont( const ScPatternAttr& rPattern )
 
 void ScEditWindow::SetText( const EditTextObject& rTextObject )
 {
-    m_xEditEngine->SetText( rTextObject );
+    GetEditEngine()->SetText( rTextObject );
 }
 
 void ScEditWindow::InsertField( const SvxFieldItem& rFld )


More information about the Libreoffice-commits mailing list