]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/item.cpp
-ahi borre lo que se me escapo
[z.facultad/75.42/plaqui.git] / Constructor / item.cpp
index 31d955dbebb8ea4faabfccc8aae3f8635fe2d8e4..c08f894c7d1d6d354f50d623d3d54d288863854e 100644 (file)
@@ -13,6 +13,7 @@ CItem::CItem()
        ref = Gnome::Glade::Xml::create("constructor.glade", "item_pty_wnd");
        ref->get_widget_derived("item_pty_wnd",property_wnd);
        caudal_max = 0.0;
+       is_union = true;
        property_wnd->item = this;
        menu_image_propiedades.set(Gtk::Stock::PREFERENCES, Gtk::ICON_SIZE_MENU);
        menu_image_delete.set(Gtk::Stock::CANCEL, Gtk::ICON_SIZE_MENU);
@@ -138,12 +139,12 @@ bool CItem::is_occupied_area(int _a, int _b)
                else return false;
 }
 
-bool CItem::is_other_occupied_area(int _a, int _b)
+bool CItem::is_other_connection_area(int _a, int _b)
 {
        std::list<CItem *>::iterator i = listaItems->begin();
        while ( i != listaItems->end() ){
                CItem *temp = *i;
-               if ( temp->is_occupied_area(_a,_b) )
+               if ( temp->is_connection_area(_a,_b) )
                        return true;
                i++;
        }