![]() |
【转帖】problem with odgsnode in 2.5.1
problem with odgsnode in 2.5.1
problem with odgsnode in 2.5.1 hi, since i use the 2.5.1 (before i used the 2.2.0) release i have a problem with my own odgsnode. let me explain : i have implemented my own odgsbasemodel(gl_gs_model), my own odgsnode(gl_node_2) etc... when i erase a object (oddbobject::erase), no problem, gl_gs_model:nerased is called with a odgidrawable* perased which had a gl_node_2. but when i change of layout, if i erase a line for example, after oddbline::erase, the gl_node_2 associed is deleted !! of course the gl_gs_model::detach is not called and in gl_gs_model:nerased method the odgidrawable* perased has not gl_node_2. so can you tell me, where do you delete odgidrawableimpl::m_pgsnode ?? i thinked it was the odgsbasemodel job ?? please help me. i can't find a solution. up hi, i just want to know who can delete odgsnode, and why it happens during erase method... help me, please. actually, detach is called from odgsbasemodel destructor, and therefore it is not virtual call - it just calls odgsbasemodel::detach, which deletes the node. it might as well just call delete on all the nodes. i did not understand your explanation about switching layouts, please explain step by step. vladimir |
所有的时间均为北京时间。 现在的时间是 09:35 PM. |