starmath/source/dialog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit f3f5341d24a34e8e97c5c451a9c86f8a306e48f8 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Feb 25 21:43:04 2022 +0000 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Feb 28 11:44:23 2022 +0100 cid#1500654 Using a moved object Change-Id: Ia4b74cdeeae7f0c03e7e050be30714f948c67106 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130549 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 0857f2456db6..b7d875f94082 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1349,8 +1349,9 @@ bool SmSymbolDialog::SelectSymbolSet(const OUString &rSymbolSetName) return pSym1->GetCharacter() < pSym2->GetCharacter(); } ); + const bool bEmptySymbolSet = aSymbolSet.empty(); m_xSymbolSetDisplay->SetSymbolSet( std::move(aSymbolSet) ); - if (!aSymbolSet.empty()) + if (!bEmptySymbolSet) SelectSymbol(0); bRet = true;