summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-02-15 17:36:52 +0100
committerJulien Nabet <serval2412@yahoo.fr>2020-02-23 20:42:46 +0100
commit17f49b0cddaac5657a9c308328215a0eb3a87442 (patch)
treed5e95bf0785de1b0e720a199f524abe70fdfcfda /chart2
parentb5b4f3153fe54fb2f9db5f9d4f176fe68f0baf7f (diff)
Related tdf#130681: use "Standard" page style if nothing else found
Opening docx from https://bugs.documentfoundation.org/attachment.cgi?id=157891 I noticed this log: warn:chart2:151346:151346:chart2/source/view/main/ChartView.cxx:1406:DBG_UNHANDLED_EXCEPTION in void chart::{anonymous}::lcl_setDefaultWritingMode(const std::shared_ptr<chart::DrawModelWrapper>&, chart::ChartModel&) exception: com.sun.star.container.NoSuchElementException bt: 0 0x00007fffd652d857 in chart::(anonymous namespace)::lcl_setDefaultWritingMode(std::shared_ptr<chart::DrawModelWrapper> const&, chart::ChartModel&) (pDrawModelWrapper=std::shared_ptr<chart::DrawModelWrapper> (use count 1, weak count 0) = {...}, rModel=...) at /home/julien/lo/libreoffice/chart2/source/view/main/ChartView.cxx:1386 1 0x00007fffd6533d3f in chart::ChartView::createShapes() (this=0x55555b750050) at /home/julien/lo/libreoffice/chart2/source/view/main/ChartView.cxx:2461 2 0x00007fffd65340d6 in chart::ChartView::impl_updateView(bool) (this=0x55555b750050, bCheckLockedCtrler=true) at /home/julien/lo/libreoffice/chart2/source/view/main/ChartView.cxx:2530 3 0x00007fffd652fc7c in chart::ChartView::getExplicitValuesForAxis(com::sun::star::uno::Reference<com::sun::star::chart2::XAxis>, chart::ExplicitScaleData&, chart::ExplicitIncrementData&) (this=0x55555b750050, xAxis=uno::Reference to (chart::Axis *) 0x55555b88fe68, rExplicitScale=..., rExplicitIncrement=...) at /home/julien/lo/libreoffice/chart2/source/view/main/ChartView.cxx:1703 4 0x00007fffd5e00ce9 in chart::wrapper::Chart2ModelContact::getExplicitValuesForAxis(com::sun::star::uno::Reference<com::sun::star::chart2::XAxis> const&, chart::ExplicitScaleData&, chart::ExplicitIncrementData&) (this=0x55555b74b330, xAxis=uno::Reference to (chart::Axis *) 0x55555b88fe68, rOutExplicitScale=..., rOutExplicitIncrement=...) at /home/julien/lo/libreoffice/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx:141 5 0x00007fffd5e6203d in chart::wrapper::WrappedScaleProperty::getPropertyValue(chart::wrapper::WrappedScaleProperty::tScaleProperty, com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&) const (this=0x55555b8214d0, eScaleProperty=chart::wrapper::WrappedScaleProperty::SCALE_PROP_MAX, xInnerPropertySet=uno::Reference to (chart::Axis *) 0x55555b88feb0) at /home/julien/lo/libreoffice/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx:365 6 0x00007fffd5e61256 in chart::wrapper::WrappedScaleProperty::getPropertyValue(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&) const (this=0x55555b8214d0, xInnerPropertySet=uno::Reference to (chart::Axis *) 0x55555b88feb0) at /home/julien/lo/libreoffice/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx:134 7 0x00007fffd6785913 in chart::WrappedProperty::getPropertyState(com::sun::star::uno::Reference<com::sun::star::beans::XPropertyState> const&) const (this=0x55555b8214d0, xInnerPropertyState=uno::Reference to (chart::Axis *) 0x55555b88ff10) at /home/julien/lo/libreoffice/chart2/source/tools/WrappedProperty.cxx:105 8 0x00007fffd678721a in chart::WrappedPropertySet::getPropertyState(rtl::OUString const&) (this=0x55555b818aa0, rPropertyName="Max") at /home/julien/lo/libreoffice/chart2/source/tools/WrappedPropertySet.cxx:285 9 0x00007fffd67874ae in chart::WrappedPropertySet::getPropertyStates(com::sun::star::uno::Sequence<rtl::OUString> const&) (this=0x55555b818aa0, rNameSeq=uno::Sequence of length 82 = {...}) at /home/julien/lo/libreoffice/chart2/source/tools/WrappedPropertySet.cxx:315 10 0x00007fffed317df6 in (anonymous namespace)::FilterPropertiesInfo_Impl::FillPropertyStateArray(std::__debug::vector<XMLPropertyState, std::allocator<XMLPropertyState> >&, com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&, rtl::Reference<XMLPropertySetMapper> const&, bool) (this=0x55555b822090, rPropStates=std::__debug::vector of length 0, capacity 0, rPropSet= uno::Reference to (chart::wrapper::AxisWrapper *) 0x55555b818ac8, rPropMapper=rtl::Reference to 0x55555b7b80d0, bDefault=false) at /home/julien/lo/libreoffice/xmloff/source/style/xmlexppr.cxx:349 11 0x00007fffed319411 in SvXMLExportPropertyMapper::Filter_(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&, bool, bool) const (this=0x55555b79d560, xPropSet=uno::Reference to (chart::wrapper::AxisWrapper *) 0x55555b818ac8, bDefault=false, bEnableFoFontFamily=false) at /home/julien/lo/libreoffice/xmloff/source/style/xmlexppr.cxx:616 12 0x00007fffed318e9a in SvXMLExportPropertyMapper::Filter(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&, bool) const (this=0x55555b79d560, rPropSet=uno::Reference to (chart::wrapper::AxisWrapper *) 0x55555b818ac8, bEnableFoFontFamily=false) at /home/julien/lo/libreoffice/xmloff/source/style/xmlexppr.cxx:546 13 0x00007fffecfcc301 in SchXMLExportHelper_Impl::exportAxis(xmloff::token::XMLTokenEnum, xmloff::token::XMLTokenEnum, com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&, com::sun::star::uno::Reference<com::sun::star::chart2::XAxis> const&, rtl::OUString const&, bool, bool, bool, bool) (this=0x55555b833a80, eDimension=xmloff::token::XML_X, eAxisName=xmloff::token::XML_PRIMARY_X, rAxisProps=uno::Reference to (chart::wrapper::AxisWrapper *) 0x55555b818ac8, rChart2Axis=uno::Reference to (chart::Axis *) 0x55555b88fe68, rCategoriesRange="", bHasTitle=false, bHasMajorGrid=false, bHasMinorGrid=false, bExportContent=false) at /home/julien/lo/libreoffice/xmloff/source/chart/SchXMLExport.cxx:2260 14 0x00007fffecfcd203 in SchXMLExportHelper_Impl::exportAxes(com::sun::star::uno::Reference<com::sun::star::chart::XDiagram> const&, com::sun::star::uno::Reference<com::sun::star::chart2::XDiagram> const&, bool) (this=0x55555b833a80, xDiagram=uno::Reference to (chart::wrapper::DiagramWrapper *) 0x55555b8be9b8, xNewDiagram=uno::Reference to (chart::Diagram *) 0x55555b883ad8, bExportContent=false) at /home/julien/lo/libreoffice/xmloff/source/chart/SchXMLExport.cxx:2401 15 0x00007fffecfca651 in SchXMLExportHelper_Impl::exportPlotArea(com::sun::star::uno::Reference<com::sun::star::chart::XDiagram> const&, com::sun::star::uno::Reference<com::sun::star::chart2::XDiagram> const&, com::sun::star::awt::Size const&, bool, bool) (this=0x55555b833a80, xDiagram=uno::Reference to (chart::wrapper::DiagramWrapper *) 0x55555b8be9b8, xNewDiagram=uno::Reference to (chart::Diagram *) 0x55555b883ad8, rPageSize=..., bExportContent=false, bIncludeTable=false) at /home/julien/lo/libreoffice/xmloff/source/chart/SchXMLExport.cxx:1925 16 0x00007fffecfc6ebc in SchXMLExportHelper_Impl::parseDocument(com::sun::star::uno::Reference<com::sun::star::chart::XChartDocument> const&, bool, bool) (this=0x55555b833a80, rChartDoc= uno::Reference to (chart::wrapper::ChartDocumentWrapper *) 0x55555b74b208, bExportContent=false, bIncludeTable=false) at /home/julien/lo/libreoffice/xmloff/source/chart/SchXMLExport.cxx:1415 17 0x00007fffecfc50ce in SchXMLExportHelper_Impl::collectAutoStyles(com::sun::star::uno::Reference<com::sun::star::chart::XChartDocument> const&) (this=0x55555b833a80, rChartDoc=uno::Reference to (chart::wrapper::ChartDocumentWrapper *) 0x55555b74b208) at /home/julien/lo/libreoffice/xmloff/source/chart/SchXMLExport.cxx:1050 18 0x00007fffecfd5207 in SchXMLExport::collectAutoStyles() (this=0x55555b7b4a00) at /home/julien/lo/libreoffice/xmloff/source/chart/SchXMLExport.cxx:3556 19 0x00007fffecfd530d in SchXMLExport::ExportAutoStyles_() (this=0x55555b7b4a00) at /home/julien/lo/libreoffice/xmloff/source/chart/SchXMLExport.cxx:3568 20 0x00007fffed0c407d in SvXMLExport::ImplExportAutoStyles() (this=0x55555b7b4a00) at /home/julien/lo/libreoffice/xmloff/source/core/xmlexp.cxx:1152 21 0x00007fffed0c527f in SvXMLExport::exportDoc(xmloff::token::XMLTokenEnum) (this=0x55555b7b4a00, eClass=xmloff::token::XML_CHART) at /home/julien/lo/libreoffice/xmloff/source/core/xmlexp.cxx:1404 22 0x00007fffecfd502f in SchXMLExport::exportDoc(xmloff::token::XMLTokenEnum) (this=0x55555b7b4a00, eClass=xmloff::token::XML_CHART) at /home/julien/lo/libreoffice/xmloff/source/chart/SchXMLExport.cxx:3534 23 0x00007fffed0c20d9 in SvXMLExport::filter(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (this=0x55555b7b4a00, aDescriptor=uno::Sequence of length 6 = {...}) at /home/julien/lo/libreoffice/xmloff/source/core/xmlexp.cxx:811 Change-Id: I21a6b54f3340b0423a0b12f39a620f71d96ff565 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88763 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/ChartView.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index c25492e91ef1..bcda427a6bdb 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -1369,6 +1369,8 @@ void lcl_setDefaultWritingMode( const std::shared_ptr< DrawModelWrapper >& pDraw
xTextCursorProps->getPropertyValue( "PageStyleName" ) >>= aPageStyle;
}
}
+ if(aPageStyle.isEmpty())
+ aPageStyle = "Standard";
}
else
{