From: <nic...@us...> - 2014-07-07 14:40:50
|
Revision: 4853 http://sourceforge.net/p/mp-plugins/code/4853 Author: nicsergio Date: 2014-07-07 14:40:44 +0000 (Mon, 07 Jul 2014) Log Message: ----------- Modified Paths: -------------- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs Modified: trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs =================================================================== --- trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-07-04 14:55:28 UTC (rev 4852) +++ trunk/plugins/ShortCuter&SkinEditor/Source/ShortCuter/ShortCuts.cs 2014-07-07 14:40:44 UTC (rev 4853) @@ -508,10 +508,12 @@ if (_general.DialogType == DialogTypes.CustomPanel) //--> nel caso di pannello: aggiunta elementi vuoti fino a forzare una nuova riga { destinations.RemoveAt(i); //--> rimozione preventiva elemento nullo (separatore) nella lista destinazioni - for (int ii = 0; ((i + ii) % navDlg.PanelRowIcons) != 0; ii++) //Iterazione di aggiunta elementi vuoti per forzare una nuova riga + i--; //--> adeguamento indice per rimozione elemento + for (int ii = 0; ((i + 1 + ii) % navDlg.PanelRowIcons) != 0; ii++) //Iterazione di aggiunta elementi vuoti per forzare una nuova riga { dlg.Add(string.Empty); //--> aggiunta riquadro vuoto destinations.Insert(i, null); //--> inserimento elemento nullo per mantenere sincronizzati gli indici delle destinazioni con gli elementi selezionabili + i++; //--> adeguemento indice per inserimento elemento } } else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |