[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Dec 5 16:47:50 UTC 2019
sc/source/ui/pagedlg/tphfedit.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b00346bcb81535b4a5c79a4ad450bb11bd663182
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Dec 5 10:19:19 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Dec 5 17:46:52 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/84544
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index d0cc03aadfb5..15cc5242152a 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