starmath/source/dialog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit fbd33571cd8f54161669abc6b696f6ebd085d70a Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Feb 25 21:43:04 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Feb 26 11:33:39 2022 +0100 cid#1500654 Using a moved object Change-Id: Ia4b74cdeeae7f0c03e7e050be30714f948c67106 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130567 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 51a923023c36..1c63416e57c1 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;