]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
Fix bug 2029 (RtL space width)
[lyx.git] / src / lyxfunc.C
index 0964eba16541267a52d1e5f22a66d5659d4d8dc6..b0b0aa610d2cf82af19ff75d0e2f61ab780aab98 100644 (file)
@@ -1408,6 +1408,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                                    || inset_code == it->lyxCode())
                                        it->dispatch(cur, fr);
                        }
+                       update = true;
                        break;
                }
 
@@ -1484,7 +1485,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                }
 
                case LFUN_TEXTCLASS_APPLY: {
-                       recordUndoFullDocument(view());
                        Buffer * buffer = owner->buffer();
 
                        lyx::textclass_type const old_class =
@@ -1504,6 +1504,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                                break;
 
                        owner->message(_("Converting document to new document class..."));
+                       recordUndoFullDocument(view());
+                       buffer->params().textclass = new_class;
                        StableDocIterator backcur(view()->cursor());
                        ErrorList el;
                        lyx::cap::SwitchBetweenClasses(