+2001-08-10 Juergen Vigna <jug@sad.it>
+
+ * insettext.C (update): comment this out as it seems first wrong
+ and second not needed anymore!
+
2001-08-08 Juergen Vigna <jug@sad.it>
* insettabular.C (setPos): fixed wrong actrow < rows() check.
2001-08-08 Juergen Vigna <jug@sad.it>
* insettabular.C (setPos): fixed wrong actrow < rows() check.
insetWidth = 0;
old_max_width = 0;
no_selection = false;
insetWidth = 0;
old_max_width = 0;
no_selection = false;
drawTextXOffset = 0;
drawTextYOffset = 0;
xpos = 0.0;
drawTextXOffset = 0;
drawTextYOffset = 0;
xpos = 0.0;
lex.printError("Missing \\end_inset at this point. "
"Read: `$$Token'");
}
lex.printError("Missing \\end_inset at this point. "
"Read: `$$Token'");
}
clearFrame(pain, cleared);
x += last_width /* was width(bv, f) */ - TEXT_TO_INSET_OFFSET;
if (bv->text->status() == LyXText::CHANGED_IN_DRAW) {
clearFrame(pain, cleared);
x += last_width /* was width(bv, f) */ - TEXT_TO_INSET_OFFSET;
if (bv->text->status() == LyXText::CHANGED_IN_DRAW) {
} else if (need_update != INIT)
need_update = NONE;
if (clear)
} else if (need_update != INIT)
need_update = NONE;
if (clear)
lt = getLyXText(bv);
clear = true;
}
lt = getLyXText(bv);
clear = true;
}
int oldw = insetWidth;
insetWidth = lt->width + (2 * TEXT_TO_INSET_OFFSET);
if (oldw != insetWidth) {
int oldw = insetWidth;
insetWidth = lt->width + (2 * TEXT_TO_INSET_OFFSET);
if (oldw != insetWidth) {
in_update = false;
return;
}
in_update = false;
return;
}
if ((need_update & CURSOR_PAR) && (lt->status() == LyXText::UNCHANGED) &&
the_locking_inset)
{
if ((need_update & CURSOR_PAR) && (lt->status() == LyXText::UNCHANGED) &&
the_locking_inset)
{
void InsetText::resizeLyXText(BufferView * bv, bool force) const
{
void InsetText::resizeLyXText(BufferView * bv, bool force) const
{
+// lyxerr << "InsetText::resizeLyXText\n";
if (!par->next() && !par->size()) // no data, resize not neccessary!
return;
// one endless line, resize normally not necessary
if (!par->next() && !par->size()) // no data, resize not neccessary!
return;
// one endless line, resize normally not necessary
void InsetText::reinitLyXText(bool wrong_cursor) const
{
void InsetText::reinitLyXText(bool wrong_cursor) const
{
+// lyxerr << "InsetText::reinitLyXText\n";
for(Cache::iterator it = cache.begin(); it != cache.end(); ++it) {
lyx::Assert(it->second.text.get());
for(Cache::iterator it = cache.begin(); it != cache.end(); ++it) {
lyx::Assert(it->second.text.get());
}
#endif
// redraw myself when asked for
}
#endif
// redraw myself when asked for