diff options
Diffstat (limited to 'sw/source/ui/frmdlg/frmdlg.cxx')
-rw-r--r-- | sw/source/ui/frmdlg/frmdlg.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/ui/frmdlg/frmdlg.cxx b/sw/source/ui/frmdlg/frmdlg.cxx index ca59c421b394..d591cef7b264 100644 --- a/sw/source/ui/frmdlg/frmdlg.cxx +++ b/sw/source/ui/frmdlg/frmdlg.cxx @@ -32,6 +32,7 @@ #include <wrap.hxx> #include <column.hxx> #include <macassgn.hxx> +#include <IDocumentSettingAccess.hxx> #include <globals.hrc> #include <strings.hrc> @@ -194,6 +195,12 @@ void SwFrameDlg::PageCreated(const OString& rId, SfxTabPage &rPage) { rPage.PageCreated(m_rSet); } + else if (rId == "crop") + { + sal_Int32 nPreferredDPI = m_pWrtShell->GetDoc()->getIDocumentSettingAccess().getImagePreferredDPI(); + if (nPreferredDPI) + rPage.getAdditionalProperties().emplace("PreferredDPI", css::uno::makeAny(nPreferredDPI)); + } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |