filter/source/graphic/GraphicExportDialog.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 73400f7a87205c052002d365245c35d3d0c996f5 Author: Eike Rathke <er...@redhat.com> Date: Fri Jul 28 12:43:26 2017 +0200 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 <er...@redhat.com> Tested-by: Jenkins <c...@libreoffice.org> 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"; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits