Bug #12827 2008-01-01 20:28

jenslody

C::B wants to save layout, even if not changed

C::B often says the layout has changed, even if it is the same and asks therefor if it should be saved.

This happens, because the actual layout is fetched with wxAuiManager::SavePerspective(). The function returns a serialized array containing the layout info. Sometimes the order of the InfoPanes in the array has changed, but there content is the same. Until now C::B compares the serialized arrays (the actual one and a saved one). If the order inside the array has changed, the strings are different and C::B believes that the content has changed.

I wrote a function that splits the strings in arrays, sorts them and compares the arrays. If they differ true is returned.

I will submit a patch and post the patch-number here.

Category
Application::WrongBehaviour
Group
 
Status
Closed
Close date
2008-01-10 10:33
Assigned to
 
jenslody 2008-01-01 20:30

Patch number is #2311

mandrav 2008-01-10 10:33

This bug is now fixed in HEAD.

Thank you for reporting it.