diff options
author | Eike Rathke <erack@redhat.com> | 2017-07-28 12:43:26 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-07-28 14:14:05 +0200 |
commit | 73400f7a87205c052002d365245c35d3d0c996f5 (patch) | |
tree | 31c954cd8c808ab2b4f0334d203168d0958498bd | |
parent | 1cbe551d86ec528533fee04f20c490a96c0ec3d3 (diff) |
Export to PNG: also Calc has MeasureUnit
Though meFieldUnit appears to not be used anywhere, but ...
Change-Id: I99e8392e4a773ba00868904e0f2ff5fdbc4bc47d
Reviewed-on: https://gerrit.libreoffice.org/40521
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | filter/source/graphic/GraphicExportDialog.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filter/source/graphic/GraphicExportDialog.cxx b/filter/source/graphic/GraphicExportDialog.cxx index 4f1d47acaf68..2673ae6220cc 100644 --- a/filter/source/graphic/GraphicExportDialog.cxx +++ b/filter/source/graphic/GraphicExportDialog.cxx @@ -130,6 +130,10 @@ void GraphicExportDialog::setSourceDocument( const Reference<XComponent>& xDocum { aConfigPath = "Office.Draw/Layout/Other/MeasureUnit"; } + else if ( xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument") ) + { + aConfigPath = "Office.Calc/Layout/Other/MeasureUnit"; + } else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") || xServiceInfo->supportsService("com.sun.star.text.WebDocument") ) { aConfigPath = "Office.Writer/Layout/Other/MeasureUnit"; |