KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
126235
:
KWord doesn't save unit of measurement selected.
P
roduct
:
kword
Co
m
ponent
:
general
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
20
Description
:
Opened:
2006-04-25 21:00
Last Changed:
2006-04-26 17:31:40
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.
Comment
#1
Thomas Zander 2006-04-25 21:29:22
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.
Comment
#2
Emanuele Tamponi 2006-04-26 14:47:51
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.
Comment
#3
Thomas Zander 2006-04-26 16:22:32
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&)),
Comment
#4
Thomas Zander 2006-04-26 17:31:40
I didn't see you reopened, closing it again.
P
latform
:
Compiled Sources
O
S
:
Linux
K
eywords
:
People
Reporter
:
Emanuele Tamponi
Assigned To
:
David Faure
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In