485:c584149b22f0 | 486:a5f3abf8b9d1 |
---|---|
426 to->selection = from->selection; | 426 to->selection = from->selection; |
427 to->length = from->length; | 427 to->length = from->length; |
428 to->remove = from->remove; | 428 to->remove = from->remove; |
429 | 429 |
430 to->obj = from->obj; | 430 to->obj = from->obj; |
431 // do not copy the undo manager | 431 // do not copy the undo manager, data1, data2 |
432 } | 432 } |
433 | 433 |
434 void uic_range_copy(UiRange *from, UiRange *to) { | 434 void uic_range_copy(UiRange *from, UiRange *to) { |
435 to->get = from->get; | 435 to->get = from->get; |
436 to->set = from->set; | 436 to->set = from->set; |
466 s->get(s); | 466 s->get(s); |
467 } | 467 } |
468 | 468 |
469 void uic_text_save(UiText *t) { | 469 void uic_text_save(UiText *t) { |
470 if(!t->obj) return; | 470 if(!t->obj) return; |
471 t->get(t); | 471 t->save(t); |
472 t->position(t); | 472 t->position(t); |
473 } | 473 } |
474 | 474 |
475 void uic_range_save(UiRange *r) { | 475 void uic_range_save(UiRange *r) { |
476 if(!r->obj) return; | 476 if(!r->obj) return; |
510 t->position = NULL; | 510 t->position = NULL; |
511 t->selection = NULL; | 511 t->selection = NULL; |
512 t->length = NULL; | 512 t->length = NULL; |
513 t->remove = NULL; | 513 t->remove = NULL; |
514 t->obj = NULL; | 514 t->obj = NULL; |
515 t->undomgr = NULL; | |
516 } | 515 } |
517 | 516 |
518 void uic_range_unbind(UiRange *r) { | 517 void uic_range_unbind(UiRange *r) { |
519 r->get = NULL; | 518 r->get = NULL; |
520 r->set = NULL; | 519 r->set = NULL; |