From 20b8c7f38ae1c03dc0405a2da006ab6b2dbf3627 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Jun 2022 19:55:58 +0200 Subject: create getter for ScCellValue::mpFormula so we can assert that it has the correct tag type Change-Id: Iab13a6d6ea1783c69395f06f28732769e5fe8b18 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136059 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/view/cellsh1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source/ui/view/cellsh1.cxx') diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx index 30a796e9f646..3c8e0fa061eb 100644 --- a/sc/source/ui/view/cellsh1.cxx +++ b/sc/source/ui/view/cellsh1.cxx @@ -3431,7 +3431,7 @@ void ScCellShell::ExecuteFillSingleEdit() if (aCell.getType() == CELLTYPE_FORMULA) { aInit = "="; - const ScTokenArray* pCode = aCell.mpFormula->GetCode(); + const ScTokenArray* pCode = aCell.getFormula()->GetCode(); sc::TokenStringContext aCxt(rDoc, rDoc.GetGrammar()); aInit += pCode->CreateString(aCxt, aCurPos); } -- cgit