X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/8d6008b7f8ad19bb71f26f5c68b4b029de2f9c3b..HEAD:/demo/src/Vistas/EmitirHojeDeRuta.cs?ds=inline diff --git a/demo/src/Vistas/EmitirHojeDeRuta.cs b/demo/src/Vistas/EmitirHojeDeRuta.cs index bcd3341..1618646 100644 --- a/demo/src/Vistas/EmitirHojeDeRuta.cs +++ b/demo/src/Vistas/EmitirHojeDeRuta.cs @@ -117,8 +117,10 @@ public class VEmitirHojaDeRuta TreeIter nuevo = store2.Append (); for(int i=0; i<4; i++) - store2.SetValue (nuevo, i, store1.GetValue (iter, i)); - store1.Remove (ref iter); + store2.SetValue (nuevo, i, model.GetValue (iter, i)); + + TreeIter rem = (model as TreeModelSort).ConvertIterToChildIter (iter); + store1.Remove (ref rem); } } @@ -135,8 +137,10 @@ public class VEmitirHojaDeRuta TreeIter nuevo = store2.Append (); for(int i=0; i<4; i++) - store2.SetValue (nuevo, i, store1.GetValue (iter, i)); - store1.Remove (ref iter); + store2.SetValue (nuevo, i, model.GetValue (iter, i)); + + TreeIter rem = (model as TreeModelSort).ConvertIterToChildIter (iter); + store1.Remove (ref rem); } }