X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.cxx;fp=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.cxx;h=a8e2efb5bdbd7da061e442307e556952a8902752;hb=58a4fa51477cbf5061dd468facfff7eb251e51c6;hp=a2540728315b2f27bb3d3a7c3c100f5ae13503e9;hpb=0b36569261590ee1d2e595b7318e0ddca929ac3a;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx index a254072..a8e2efb 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx @@ -343,21 +343,22 @@ namespace bbtk unsigned short wxGEditorTabPanel::getUndoState( std::string &stun) { stun = "Undo"; - if(states.size()>0) + if(sstates.size()>0) { if(_actualdo == states.begin() ) +// if(sstates.size()==1 ) { - +// _sactualdo=sstates.begin(); return 0; - } - else - { + } else { stun +=" - "; - stun += _sactualdo->substr(0,(--_sactualdo)->find_last_of(".")); +printf("EED wxGEditorTabPanel::getUndoState This mecanisme is not working ?????? _sactualdo sstates _actualdo state \n"); +// stun += _sactualdo->substr(0,(--_sactualdo)->find_last_of(".")); _sactualdo++; return 1; } } + return 0; } unsigned short wxGEditorTabPanel::getRedoState( std::string &stre)