Make qt2 frontend compile

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3414 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2002-01-18 09:55:18 +00:00
parent 37cfca3ed6
commit ddf8ca8f26
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2002-01-18 Edwin Leuven <leuven@fee.uva.nl>
* QMinipage.C: compiles fixes (lyxlength related)
2002-01-15 John Levon <moz@compsoc.man.ac.uk>
* Makefile.am:

View File

@ -57,9 +57,7 @@ void QMinipage::apply()
if (string(dialog_->widthED->text().latin1()).empty())
unit = LyXLength::UNIT_NONE;
LyXLength len(value, unit);
controller().params().pageWidth = len.asString();
controller().params().pageWidth = LyXLength(value, unit);
switch (dialog_->valignCO->currentItem()) {
case 0:
@ -87,7 +85,7 @@ namespace {
void QMinipage::update_contents()
{
LyXLength len(controller().params().pageWidth.c_str());
LyXLength len(controller().params().pageWidth);
dialog_->widthED->setText(numtostr(len.value()).c_str());
dialog_->unitsLC->setCurrentItem(len.unit());
lyxerr << "width " << numtostr(len.value()).c_str() << " units " << len.unit() << std::endl;