This project is read-only.
1

Resolved

GetSelectedItems() causes exception.

description

James,
 
When GetSelectedElements() is called internally via the Model.SelectedElements() a type conversion error occurrs if you have a TreeLine on the diagram.
 
Changing ...
 
foreach (Link line in Lines.Values)
        {
            if (line.Selected)
            {
                _selectedElements.Add(line.Key, line);
                _selectedLines.Add(line.Key, line);
            }
        }
 
To...
 
foreach (Line line in Lines.Values)
        {
            if (line.Selected)
            {
                _selectedElements.Add(line.Key, line);
                _selectedLines.Add(line.Key, line);
            }
        }
 
seems to fix this issue until you can release an update.
 
Cheers mate.

comments

JamesWestgate wrote Apr 25, 2010 at 5:04 PM

Fixed in previous build.

wrote Feb 14, 2013 at 8:33 PM

wrote May 16, 2013 at 10:39 AM

wrote May 16, 2013 at 10:39 AM

wrote Jun 14, 2013 at 8:13 AM