]> git.lyx.org Git - features.git/blobdiff - src/insets/inset.C
Added %x support in vspace.C (LyXLenght) and use it for the minipages.
[features.git] / src / insets / inset.C
index 95e69d268254f45d95607cdc2a425f42e40d5bac..73211ba25a8c2b993e84dd85208369c4b73f8eb6 100644 (file)
@@ -229,9 +229,9 @@ UpdatableInset::LocalDispatch(BufferView * bv,
 }
 
 
-int UpdatableInset::getMaxWidth(Painter & pain, UpdatableInset const *) const
+int UpdatableInset::getMaxWidth(BufferView * bv, UpdatableInset const *) const
 {
     if (owner())
-        return static_cast<UpdatableInset*>(owner())->getMaxWidth(pain, this);
-    return pain.paperWidth();
+        return static_cast<UpdatableInset*>(owner())->getMaxWidth(bv, this);
+    return bv->workWidth();
 }