w = static_cast<UpdatableInset*>
(owner())->getMaxWidth(bv, this);
} else {
- w = bv->workWidth();
+ w = bv->text->workWidth(bv, const_cast<UpdatableInset *>(this));
}
if (w < 0) {
return -1;
if (topx_set && owner()) {
w -= top_x;
w += owner()->x();
- } else if (!owner()) {
+ }
+#if 0 // already handled above now!!!
+ else if (!owner()) {
// give some left margin this should be made better!
// Idea: LyXText::giveLeftMargin(Inset * inset) will search the
// inset in the text and return the LeftMargin of that row!
+ lyxerr << "w -= 20\n";
w -= 20;
}
+#endif
if (w < 10) {
w = 10;
}
}
-string const UpdatableInset::selectNextWord(BufferView *bv,
+string const UpdatableInset::selectNextWordToSpellcheck(BufferView *bv,
float & value) const
{
// we have to unlock ourself in this function by default!