diff options
Diffstat (limited to 'sw/source/uibase/utlui/unotools.cxx')
-rw-r--r-- | sw/source/uibase/utlui/unotools.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx index 1d17a279674f..62c3397bf11c 100644 --- a/sw/source/uibase/utlui/unotools.cxx +++ b/sw/source/uibase/utlui/unotools.cxx @@ -50,6 +50,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/propertysequence.hxx> #include <comphelper/servicehelper.hxx> +#include <comphelper/string.hxx> #include <docsh.hxx> #include <editsh.hxx> #include <swmodule.hxx> @@ -499,7 +500,7 @@ void SwOneExampleFrame::PopupHdl(std::string_view rId) std::string_view sZoomValue; if (o3tl::starts_with(rId, "zoom", &sZoomValue)) { - sal_Int16 nZoom = rtl_str_toInt64_WithLength(sZoomValue.data(), 10, sZoomValue.length()); + sal_Int16 nZoom = comphelper::string::toInt32(sZoomValue); uno::Reference< view::XViewSettingsSupplier > xSettings(m_xController, uno::UNO_QUERY); uno::Reference< beans::XPropertySet > xViewProps = xSettings->getViewSettings(); |