* insettext.C (setViewCache): don't call LyXText::init() anymore

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8127 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-11-24 16:54:00 +00:00
parent cbe6dd74b3
commit 4bcfc9abe9
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2003-11-17 André Pönitz <poenitz@gmx.net>
* insettext.C (setViewCache): don't call LyXText::init() anymore
2003-11-21 Michael Schmitt <michael.schmitt@teststep.org>
* inset.h:

View File

@ -596,12 +596,9 @@ RowList::iterator InsetText::crow() const
void InsetText::setViewCache(BufferView const * bv) const
{
if (bv) {
if (bv != text_.bv_owner) {
//lyxerr << "setting view cache from "
// << text_.bv_owner << " to " << bv << "\n";
text_.init(const_cast<BufferView *>(bv));
}
if (bv && bv != text_.bv_owner) {
//lyxerr << "setting view cache from "
// << text_.bv_owner << " to " << bv << "\n";
text_.bv_owner = const_cast<BufferView *>(bv);
}
}