mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
37cfca3ed6
commit
ddf8ca8f26
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user