diff options
Diffstat (limited to 'sw/source/core/crsr/bookmrk.cxx')
-rw-r--r-- | sw/source/core/crsr/bookmrk.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index e39c5ced6a05..3efdbf98167d 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -755,12 +755,12 @@ namespace sw::mark // Selected item OUString sResultKey = ODF_FORMDROPDOWN_RESULT; auto pSelectedItemIter = pParameters->find(sResultKey); + sal_Int32 nSelection = -1; if (pSelectedItemIter != pParameters->end()) { - sal_Int32 nSelection = -1; pSelectedItemIter->second >>= nSelection; - sPayload.append("\"selected\": \"" + OString::number(nSelection) + "\"}}"); } + sPayload.append("\"selected\": \"" + OString::number(nSelection) + "\"}}"); } else { |