lyxerr[Debug::INFO] << "LFUN_LAYOUT: (arg) "
<< argument << endl;
+ // This is not the good solution to the empty argument
+ // problem, but it will hopefully suffice for 1.2.0.
+ // The correct solution would be to augument the
+ // function list/array with information about what
+ // functions needs arguments and their type.
+ if (argument.empty()) {
+ owner_->getLyXFunc()->setErrorMessage(
+ _("LyX function 'layout' needs an argument."));
+ break;
+ }
+
// Derive layout number from given argument (string)
// and current buffer's textclass (number). */
bool hasLayout = tclass.hasLayout(argument);
+2002-05-08 Lars Gullik Bjønnes <larsbj@birdstep.com>
+
+ * BufferView_pimpl.C (Dispatch): work around missing argument for
+ 'layout'
+
2002-05-08 Juergen Vigna <jug@sad.it>
* text.C (leftMargin): handle paragraph leftindent.
2002-05-05 Dekel Tsur <dekelts@tau.ac.il>
* paragraph.C (isRightToLeftPar): Return false for a paragraph
- inside insetERT.
+ inside insetERT.
* text.C (computeBidiTables): No bidi in insetERT.
* BufferView_pimpl.C (setState): Fix keymap handling inside insetERT
- in RTL documents.
+ in RTL documents.
2002-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>