Mercurial > MadButterfly
comparison pyink/domview_ui.py @ 1275:776b024ae8f9
Fix the buggy implementation of reset()
- old implementation is too buggy to make a lot wrong assumption.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 12 Jan 2011 21:41:26 +0800 |
parents | a4d3838264dd |
children | f7395e788aaf |
comparison
equal
deleted
inserted
replaced
1274:a4d3838264dd | 1275:776b024ae8f9 |
---|---|
429 | 429 |
430 ## \brief Reload the document. | 430 ## \brief Reload the document. |
431 # | 431 # |
432 def reset(self): | 432 def reset(self): |
433 self._fl_stack.remove_all_framelines() | 433 self._fl_stack.remove_all_framelines() |
434 self.handle_doc_root(self._doc, self._root) | 434 self._dom.reset() |
435 self._add_frameline_for_every_layer() | |
435 pass | 436 pass |
436 | 437 |
437 ## \brief Mark given frame as a key frame. | 438 ## \brief Mark given frame as a key frame. |
438 # | 439 # |
439 def mark_key(self, layer_idx, key_idx): | 440 def mark_key(self, layer_idx, key_idx): |