cjprecord / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

[projects] #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to? What version of the Plugin?
Projects 1.1

What steps will reproduce the problem?
Right-click any node in BZR project tree under Windows

What is the expected output? What do you see instead?
The following error is reported:

#---- System Information ----#
Editra Version: 0.4.88
Operating System: Windows XP (build 2600, Service Pack 3)
Python Version: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32
bit (Intel)]
wxPython Version: 2.8.9.2 (msw-unicode)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii  File=mbcs
wxPython Encoding: cp1252
System Architecture: 32bit
Byte order: little
Frozen: False
#---- End System Information ----#

#---- Traceback Info ----#
*** Tue May 05 17:22:42 2009 ***
Traceback (most recent call last):
  File
"c:\data\programs\editra-0.4.88\plugins\projects-1.1-py2.5.egg\projects\ProjectP
ane.py",
line 1336, in OnContextMenu
    itemid = self.tree.GetSelection()
  File
"C:\data\programs\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_controls.py"
,
line 5405, in GetSelection
    return _controls_.TreeCtrl_GetSelection(*args, **kwargs)
PyAssertionError: C++ assertion "!(m_windowStyle & 0x0020)" failed at
..\..\src\msw\treectrl.cpp(1324) in wxTreeCtrl::GetSelection(): this only
works with single selection controls

*** Tue May 05 17:23:09 2009 ***
Traceback (most recent call last):
  File
"c:\data\programs\editra-0.4.88\plugins\projects-1.1-py2.5.egg\projects\ProjectP
ane.py",
line 1336, in OnContextMenu
    itemid = self.tree.GetSelection()
  File
"C:\data\programs\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_controls.py"
,
line 5405, in GetSelection
    return _controls_.TreeCtrl_GetSelection(*args, **kwargs)
PyAssertionError: C++ assertion "!(m_windowStyle & 0x0020)" failed at
..\..\src\msw\treectrl.cpp(1324) in wxTreeCtrl::GetSelection(): this only
works with single selection controls

#---- End Traceback Info ----#

What version of Editra are you using? On what operating system?
See above

Please provide any additional information below.
I fixed this problem by replacing:

        itemid = self.tree.GetSelection()
        icon = self.tree.GetItemImage(itemid)
        scenabled = icon not in (self.icons['file'],
                                 self.icons['folder'],
                                 self.icons['folder-open'])

with:

        scenabled = False
        for itemid in self.tree.GetSelections():
            icon = self.tree.GetItemImage(itemid)
            if icon in (self.icons['file'],
                        self.icons['folder'],
                        self.icons['folder-open']):
                scenabled = True

in ProjectTree.OnContextMenu in ProjectPane.py

Original issue reported on code.google.com by idcoll...@gmail.com on 5 May 2009 at 6:42

GoogleCodeExporter commented 9 years ago
Hello,

THis has already been fixed please upgrade to version 1.2. Please also always 
include
a summary when filling bug reports.

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 6 May 2009 at 11:53