cyotek / imagelistview

Automatically exported from code.google.com/p/imagelistview
4 stars 0 forks source link

Crash on drop files #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Two image list view panes
2.Add some images to one of then
3.DragDrop some from one pane to another
4.DragDrop couple more but include at least one from previous operation

What is the expected output? What do you see instead?
It should be added, index out of range instead

What version of the product are you using? On what operating system?
Win7, .NET 2.0, ImageListView 10.5

Please provide any additional information below.
When dropping files index in ImageListView.OnDropFiles gets incremented but 
ImageListViewItemCollection.InsertInternal does not execute mItems[i].mIndex++ 
if item already exists. I'm going to attach my fix but I didn't really go 
through code to make something smarter. You have been warned.

Original issue reported on code.google.com by marko.dr...@gmail.com on 30 Mar 2012 at 9:59

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r673.

Original comment by oozcitak on 9 Aug 2012 at 11:38