sw/source/core/doc/dbgoutsw.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
New commits: commit 37aa209118631c706fb572d7d6c700017c276d12 Author: Caolán McNamara <[email protected]> Date: Tue Apr 21 09:27:21 2015 +0100 silence the warning from GetAssignedOutlineStyleLevel Change-Id: Ib55cb1982ed279bc3941eef58f894262b6687830 diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx index cb4d7ae..05e2b82 100644 --- a/sw/source/core/doc/dbgoutsw.cxx +++ b/sw/source/core/doc/dbgoutsw.cxx @@ -611,8 +611,16 @@ static OUString lcl_dbg_out(const SwNode & rNode) aTmpStr += pColl->GetName(); aTmpStr += "("; - aTmpStr += OUString::number - (static_cast<SwTxtFmtColl *>(pColl)->GetAssignedOutlineStyleLevel()); + + SwTxtFmtColl *pTxtColl = static_cast<SwTxtFmtColl*>(pColl); + if (pTxtColl->IsAssignedToListLevelOfOutlineStyle()) + { + aTmpStr += OUString::number(pTxtColl->GetAssignedOutlineStyleLevel()); + } + else + { + aTmpStr += OUString::number(-1); + } const SwNumRuleItem & rItem = static_cast<const SwNumRuleItem &>
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
