mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 19:40:12 +01:00
Fix bug when there are more than one code snippets in a set of overloaded methods.
This commit is contained in:
@@ -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() )
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
# -----------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user