From 87eb273ceca7e4212a4bfbf2e04b616bac73a701 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sat, 6 Apr 2019 20:54:25 +0200 Subject: More document.h cleanup. --- src/style.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/style.cpp') diff --git a/src/style.cpp b/src/style.cpp index c87d84a9f..1cece6dbd 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -917,10 +917,11 @@ SPStyle::_mergeObjectStylesheet( SPObject const *const object ) { CRPropList *props = nullptr; //XML Tree being directly used here while it shouldn't be. - CRStatus status = cr_sel_eng_get_matched_properties_from_cascade(sel_eng, - object->document->style_cascade, - object->getRepr(), - &props); + CRStatus status = + cr_sel_eng_get_matched_properties_from_cascade(sel_eng, + object->document->getStyleCascade(), + object->getRepr(), + &props); g_return_if_fail(status == CR_OK); /// \todo Check what errors can occur, and handle them properly. if (props) { -- cgit v1.2.3