Version: 1.5.0 (using KDE KDE 3.5.2) Installed from: Compiled From Sources Compiler: gcc version 3.4.6 gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9) OS: Linux Hello, I noticed that if I change unit of measurement (default to mm) from kword startup dialog, kword doesn't notice that and keeps displaying units as mm. I can change the unit from kword, right-clicking or using the KWord Settings Dialog, but this change is not saved and I have to select the unit of measurement each time I start kword. Hope this bug can be solved quickly... Thank you, Emanuele T.
SVN commit 533884 by zander: Copy and use the unit that the user choose. BUG: 126235 M +1 -0 kword/KWStartupWidget.cpp M +2 -0 lib/kofficeui/KoPageLayoutSize.h --- branches/koffice/1.5/koffice/kword/KWStartupWidget.cpp #533883:533884 @@ -81,6 +81,7 @@ hf.ptFootNoteBodySpacing = 10.0; m_doc->setPageLayout( m_layout, m_columns, hf, false ); m_doc->delayedRecalcFrames(1); + m_doc->setUnit(m_sizeWidget->unit()); emit documentSelected(); } --- branches/koffice/1.5/koffice/lib/kofficeui/KoPageLayoutSize.h #533883:533884 @@ -60,6 +60,8 @@ */ void setColumns(KoColumns &columns); + KoUnit::Unit unit() { return m_unit; } + public slots: /** * Set a new unit for the widget updating the widgets.
Thank you ThomasZ :) however, your patch solves only the first part of the bug: the selected unit of measurement isn't saved in kwordrc and then I've to set it each time I restart kword... Bye, Emanuele T.
SVN commit 534153 by zander: Use unit from config, not the hardcoded mm. CCBUG:126235 M +2 -2 KWStartupWidget.cpp --- branches/koffice/1.5/koffice/kword/KWStartupWidget.cpp #534152:534153 @@ -36,11 +36,11 @@ setFocusProxy(m_createButton); QVBoxLayout *lay = new QVBoxLayout(m_sizeTab, KDialog::marginHint()); - m_sizeWidget = new KoPageLayoutSize(m_sizeTab, m_layout, KoUnit::U_MM, m_columns , true, true); + m_sizeWidget = new KoPageLayoutSize(m_sizeTab, m_layout, m_doc->unit(), m_columns , true, true); lay->addWidget(m_sizeWidget); lay = new QVBoxLayout(m_columnsTab, KDialog::marginHint()); - m_columnsWidget = new KoPageLayoutColumns(m_columnsTab, m_columns, KoUnit::U_MM, m_layout); + m_columnsWidget = new KoPageLayoutColumns(m_columnsTab, m_columns, m_doc->unit(), m_layout); lay->addWidget(m_columnsWidget); connect (m_columnsWidget, SIGNAL( propertyChange(KoColumns&)),
I didn't see you reopened, closing it again.
You need to log in before you can comment on or make changes to this bug.