Herbert's graphics get latex size check

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4603 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-07-11 14:38:25 +00:00
parent 86323de88f
commit 0123437d76
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-07-11 Herbert Voss <voss@perce.de>
* FormGraphics.C (input): test also the height for %-value, when
importing the latex-value into the lyx-view
2002-07-10 Andrew Zabolotny <zap@cobra.ru>
* XMiniBuffer.C (peek_event):

View File

@ -544,9 +544,10 @@ ButtonPolicy::SMInput FormGraphics::input(FL_OBJECT * ob, long)
setEnabled(lyxview_->choice_lyxheight, 0);
setEnabled(lyxview_->input_lyxscale, 1);
} else if (ob == lyxview_->button_latex_values) {
if (contains(fl_get_choice_text(size_->choice_width),'%'))
if (contains(fl_get_choice_text(size_->choice_width),'%') ||
contains(fl_get_choice_text(size_->choice_height),'%'))
Alert::alert(_("Warning!"),
_("The units text%, page%, col% and line% are not allowed here."),
_("The %-units are not allowed here."),
_("Cannot use the values from LaTeX size!"));
else {
LyXLength dummy =