Fix bug when there are more than one code snippets in a set of overloaded methods.

This commit is contained in:
Robin Dunn
2016-07-15 16:25:05 -07:00
parent d99540da34
commit 9f8a5b8d9a
3 changed files with 7 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
font = wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, True)
# Create a font using wx.FontInfo
font = wx.Font( wx.FontInfo(10).Bold().Underline() )

View File

@@ -1,2 +1,2 @@
# Create a font using the old-style constructor
font = wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, True)

View File

@@ -2062,7 +2062,8 @@ class XMLDocString(object):
break
self.share_docstrings = share_docstrings
snippet_count = 0
for sub_item in [self.xml_item] + self.xml_item.overloads:
if sub_item.ignored:
@@ -2072,10 +2073,11 @@ class XMLDocString(object):
docstring = XMLDocString(sub_item, is_overload=True, share_docstrings=share_docstrings)
docstring.class_name = self.class_name
docstring.current_module = self.current_module
docstring.snippet_count = snippet_count
docs = docstring.Dump()
self.overloads.append(docs)
snippet_count = docstring.snippet_count
# -----------------------------------------------------------------------