]> O.S.I.I.S - jp/crow.git/commitdiff
code cleaning
authorjpbruyere <jp.bruyere@hotmail.com>
Wed, 9 Sep 2015 07:53:34 +0000 (09:53 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Wed, 9 Sep 2015 07:53:34 +0000 (09:53 +0200)
src/GraphicObjects/Group.cs

index 929bae9a7ae3f51aed6990310958e05824e6756f..18b0045341089e0e8c52cf9bf5699a1e80e76ca7 100644 (file)
@@ -154,31 +154,25 @@ namespace go
                        CairoHelpers.CairoRectangle(gr,rBack,CornerRadius);\r
                        gr.Fill ();\r
 \r
-                       foreach (GraphicObject g in Children.Where(ch=>ch.Visible)) {\r
+                       foreach (GraphicObject g in Children) {\r
                                g.Paint (ref gr);\r
                        }\r
                }\r
 \r
                public override void Paint(ref Context ctx, Rectangles clip = null)\r
                {\r
-                       if ( !(Visible) )\r
+                       if ( !Visible )\r
                                return;\r
 \r
-                       //                      ctx.Save ();\r
-\r
-//                     if (clip!=null)\r
-//                             clip.clearAndClip (ctx);//n'était pas actif\r
-\r
                        if (bmp == null)\r
                                UpdateGraphic ();\r
                        else {\r
 \r
                                Rectangle rb = Parent.ContextCoordinates (Slot);\r
 \r
-                               if (clip != null) {\r
+                               if (clip != null)\r
                                        clip.Rebase (this);                                                                     \r
-                                       //localClip = clip.intersectingRects (Slot.Size);\r
-                               } else {\r
+                               else {\r
                                        clip = new Rectangles ();\r
                                        //TODO:added lately slot to empty clip,\r
                                        //should rework this precise case causing expandable not\r
@@ -214,8 +208,6 @@ namespace go
                        }\r
                                \r
                        base.Paint (ref ctx, clip);\r
-\r
-                       //                      ctx.Restore(); \r
                }\r
                #endregion\r
 \r
@@ -238,16 +230,6 @@ namespace go
                        base.checkHoverWidget (e);\r
                }\r
                #endregion\r
-                               \r
-//        public override string ToString()\r
-//        {\r
-//            string tmp = base.ToString();\r
-//            foreach (GraphicObject w in Children)\r
-//            {\r
-//                tmp += "\n" + w.ToString();\r
-//            }\r
-//            return tmp;\r
-//        }\r
 \r
                #region IXmlSerializable\r
 \r