- cancellation_->set_property ("alteration-alist", restore);
- cancellation_->set_property ("c0-position",
- get_property ("middleCPosition"));
+ if (scm_is_pair (restore))
+ {
+ cancellation_ = make_item ("KeyCancellation",
+ key_event_
+ ? key_event_->self_scm () : SCM_EOL);
+
+ cancellation_->set_property ("alteration-alist", make_qt_key (restore));
+ cancellation_->set_property ("c0-position",
+ get_property ("middleCPosition"));
+ }