diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-02-16 14:35:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-16 23:31:28 +0000 |
commit | daa605e5f9ee9fc8285b2d9f7a348599174fefd5 (patch) | |
tree | cb29ec96d6d059f900017fe557f588a57f21efd2 /sw/source/filter/ww8/writerhelper.hxx | |
parent | 1c349320adccb9d7fd525f48c0e5b01af13384f1 (diff) |
coverity#736209: Out-of-bounds access
Change-Id: Idd0b5bb68bd0038473f981bb03aab63a5defd3b7
Diffstat (limited to 'sw/source/filter/ww8/writerhelper.hxx')
-rw-r--r-- | sw/source/filter/ww8/writerhelper.hxx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/writerhelper.hxx b/sw/source/filter/ww8/writerhelper.hxx index ef3738695690..d15f2b8debb8 100644 --- a/sw/source/filter/ww8/writerhelper.hxx +++ b/sw/source/filter/ww8/writerhelper.hxx @@ -665,10 +665,26 @@ namespace sw */ const SwNumFmt* GetNumFmtFromTxtNode(const SwTxtNode &rTxtNode); + /** Get the Numbering Format for a given level from a numbering rule + + @param rRule + The numbering rule + + @param nLevel + The numbering level + + @return A SwNumFmt pointer that describes the numbering level + or 0 if the nLevel is out of range + + @author + <a href="mailto:cmc@openoffice.org">Caolán McNamara</a> + */ + const SwNumFmt* GetNumFmtFromSwNumRuleLevel(const SwNumRule &rRule, + int nLevel); + const SwNumRule* GetNumRuleFromTxtNode(const SwTxtNode &rTxtNd); const SwNumRule* GetNormalNumRuleFromTxtNode(const SwTxtNode &rTxtNd); - /** Get the SwNoTxtNode associated with a SwFrmFmt if here is one There are two differing types of numbering formats that may be on a |