From koffice-devel Wed Oct 28 09:00:17 2009 From: Pierre Stirnweiss Date: Wed, 28 Oct 2009 09:00:17 +0000 To: koffice-devel Subject: Re: Patch to fix multiple undo command on pasting page in kpresenter Message-Id: X-MARC-Message: https://marc.info/?l=koffice-devel&m=125672045329905 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2049051975==" --===============2049051975== Content-Type: multipart/alternative; boundary=001485f1d850149b3f0476fb06d7 --001485f1d850149b3f0476fb06d7 Content-Type: text/plain; charset=ISO-8859-1 > > > > That should be no problem as load on the shape is only called during > loading > the shape and not while it already has some content. So there should be no > commands in the QTextDocument stack which will be undone by the application > after loading. > Very true. That would clear the undoStack of the new QTextDocument. The other QTextDocuments and their corresponding KoTextEditor shouldn't be affected. It is actually a pretty elegant solution. Pierre --001485f1d850149b3f0476fb06d7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


That should be no problem as load on the shape is only called during = loading
the shape and not while it already has some content. So there should be no<= br> commands in the QTextDocument stack which will be undone by the application=
after loading.

Very true. That would clear the und= oStack of the new QTextDocument. The other QTextDocuments and their corresp= onding KoTextEditor shouldn't be affected.
It is actually a pretty e= legant solution.
=A0

Pierre
--001485f1d850149b3f0476fb06d7-- --===============2049051975== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============2049051975==--