]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/workplace.cpp
-Cambie un poco lo que hizo Rich para dibujar los conectores
[z.facultad/75.42/plaqui.git] / Constructor / src / workplace.cpp
index 1666c8a7d68b53d8ef668ae645e6bfe2fdc69fef..548b771808d7a820885fc9774e11b1b93bbb292e 100644 (file)
@@ -23,11 +23,14 @@ bool WorkPlace::on_expose_event(GdkEventExpose *event)
                        get_window()->draw_point (get_style()->get_black_gc(), x-1,y);
                }
                
                        get_window()->draw_point (get_style()->get_black_gc(), x-1,y);
                }
                
-       Glib::RefPtr<Gdk::GC> gc = get_style()->get_black_gc();
-       Gdk::Color color;
-       color.set_rgb(255,0,0);
-       gc->set_rgb_bg_color(color);
-       get_style()->set_black(color);
+       if ( *logica ) {        
+               std::list<CItem *>::iterator j = listaItems->begin();
+               while ( j != listaItems->end() ) {
+                       (*j)->draw_connectors();
+                       j++;
+               }
+       }
+       
        int a, b, w, z;         
        std::list<t_line>::iterator i = lista_lineas_in.begin();
        while ( i != lista_lineas_in.end() ) {
        int a, b, w, z;         
        std::list<t_line>::iterator i = lista_lineas_in.begin();
        while ( i != lista_lineas_in.end() ) {