summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/output2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-06-17 16:00:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-17 17:00:11 +0200
commitc78193b32152122e9b71151b1b463b2dff99f42f (patch)
tree72dcf399927ea7b4dd0bcb53829f31301272f3f8 /sc/source/ui/view/output2.cxx
parent69e5d752ef20f5cd5b3a429a3546ae46bbb5f62a (diff)
create getter for ScCellValue::mpEditText
so we can assert that it has the correct tag type Change-Id: I984c22ae2527d652f2d4194227dc1173793300c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136054 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/output2.cxx')
-rw-r--r--sc/source/ui/view/output2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index a879923f9ca4..64bb99ffc098 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -2380,7 +2380,7 @@ bool ScOutputData::DrawEditParam::readCellContent(
{
if (maCell.getType() == CELLTYPE_EDIT)
{
- const EditTextObject* pData = maCell.mpEditText;
+ const EditTextObject* pData = maCell.getEditText();
if (pData)
{
mpEngine->SetTextCurrentDefaults(*pData);
@@ -2699,7 +2699,7 @@ void ScOutputData::DrawEditParam::setAlignmentToEngine()
// We need to synchronize the vertical mode in the EditTextObject
// instance too. No idea why we keep this state in two separate
// instances.
- const EditTextObject* pData = maCell.mpEditText;
+ const EditTextObject* pData = maCell.getEditText();
if (pData)
const_cast<EditTextObject*>(pData)->SetVertical(mbAsianVertical);
}
@@ -4732,8 +4732,8 @@ void ScOutputData::DrawRotated(bool bPixelToLogic)
if (aCell.getType() == CELLTYPE_EDIT)
{
- if (aCell.mpEditText)
- pEngine->SetTextCurrentDefaults(*aCell.mpEditText);
+ if (aCell.getEditText())
+ pEngine->SetTextCurrentDefaults(*aCell.getEditText());
else
{
OSL_FAIL("pData == 0");