diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-21 09:27:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-21 09:47:39 +0100 |
commit | 37aa209118631c706fb572d7d6c700017c276d12 (patch) | |
tree | 197747f15af284bdd500d85c870319481b13216b /sw/source | |
parent | 08642a115e8bb936fa914b6682ca6be9e08350fd (diff) |
silence the warning from GetAssignedOutlineStyleLevel
Change-Id: Ib55cb1982ed279bc3941eef58f894262b6687830
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/doc/dbgoutsw.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx index cb4d7aed8545..05e2b821a5f9 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 &> |