diff options
Diffstat (limited to 'sfx2/source/control/shell.cxx')
-rw-r--r-- | sfx2/source/control/shell.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index 74ce18457c3e..de879755459e 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -28,7 +28,9 @@ #include <com/sun/star/embed/VerbDescriptor.hpp> #include <com/sun/star/embed/VerbAttributes.hpp> +#include <comphelper/processfactory.hxx> #include <basic/sbstar.hxx> +#include <officecfg/Office/Common.hxx> #include <rtl/oustringostreaminserter.hxx> #include <sal/log.hxx> #include <svl/itempool.hxx> @@ -37,8 +39,6 @@ #include <svtools/asynclink.hxx> #include <basic/sbx.hxx> -#include <unotools/undoopt.hxx> - #include <sfx2/app.hxx> #include <sfx2/shell.hxx> #include <sfx2/bindings.hxx> @@ -486,7 +486,9 @@ void SfxShell::SetUndoManager( ::svl::IUndoManager *pNewUndoMgr ) pUndoMgr = pNewUndoMgr; if ( pUndoMgr ) - pUndoMgr->SetMaxUndoActionCount( (sal_uInt16) SvtUndoOptions().GetUndoCount() ); + pUndoMgr->SetMaxUndoActionCount( + officecfg::Office::Common::Undo::Steps::get( + comphelper::getProcessComponentContext())); } //-------------------------------------------------------------------- |