KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
136636
:
When Zoom is changed in KWord, embedded formula...
P
roduct
:
kformula
Co
m
ponent
:
general
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2006-11-01 14:43
Last Changed:
2007-01-11 19:15:40
Version: 1.6.0 (using KDE KDE 3.5.5) When Zoom is changed in KWord, embedded formulae's font size remains unchanged
Comment
#1
Alfredo Beaumont 2007-01-11 19:15:40
SVN commit 622386 by abeaumont: Change content size when zoom is changed. This caused problem with embedded formulas. Still has some issues, but it works now. BUG: 136636 M +15 -9 contextstyle.cc --- branches/koffice/1.6/koffice/lib/kformula/contextstyle.cc #622385:622386 @@ -224,7 +224,8 @@ return qRound( ptToLayoutUnitPt( m_sizeFactor * m_baseSize * getReductionFactor( tstyle ) - * factor ) ); + * factor + * zoom() / 100.0 ) ); } luPixel ContextStyle::getSpace( TextStyle tstyle, SpaceWidth space, double factor ) const @@ -243,28 +244,32 @@ { return ptToPixelX( m_sizeFactor * textStyleValues[ tstyle ].thinSpace( quad ) - * factor ); + * factor + * zoom() / 100.0 ); } luPixel ContextStyle::getMediumSpace( TextStyle tstyle, double factor ) const { return ptToPixelX( m_sizeFactor * textStyleValues[ tstyle ].mediumSpace( quad ) - * factor ); + * factor + * zoom() / 100.0 ); } luPixel ContextStyle::getThickSpace( TextStyle tstyle, double factor ) const { return ptToPixelX( m_sizeFactor * textStyleValues[ tstyle ].thickSpace( quad ) - * factor ); + * factor + * zoom() / 100.0 ); } luPixel ContextStyle::getQuadSpace( TextStyle tstyle, double factor ) const { return ptToPixelX( m_sizeFactor * textStyleValues[ tstyle ].quadSpace( quad ) - * factor ); + * factor + * zoom() / 100.0 ); } luPixel ContextStyle::axisHeight( TextStyle tstyle, double factor ) const @@ -272,7 +277,8 @@ //return ptToPixelY( textStyleValues[ tstyle ].axisHeight( m_axisHeight ) ); return static_cast<luPixel>( m_sizeFactor * textStyleValues[ tstyle ].axisHeight( m_axisHeight ) - * factor ); + * factor + * zoom() / 100.0 ); } luPt ContextStyle::getBaseSize() const @@ -297,17 +303,17 @@ luPixel ContextStyle::getLineWidth( double factor ) const { - return ptToLayoutUnitPixX( m_sizeFactor*lineWidth*factor ); + return ptToLayoutUnitPixX( m_sizeFactor*lineWidth*factor*zoom() / 100.0 ); } luPixel ContextStyle::getEmptyRectWidth( double factor ) const { - return ptToLayoutUnitPixX( m_sizeFactor*m_baseSize*factor/1.8 ); + return ptToLayoutUnitPixX( m_sizeFactor*m_baseSize*factor*(zoom() / 100.0)/1.8 ); } luPixel ContextStyle::getEmptyRectHeight( double factor ) const { - return ptToLayoutUnitPixX( m_sizeFactor*m_baseSize*factor/1.8 ); + return ptToLayoutUnitPixX( m_sizeFactor*m_baseSize*factor*(zoom() / 100.0)/1.8 ); }
P
latform
:
unspecified
O
S
:
Linux
K
eywords
:
People
Reporter
:
Alfredo Beaumont
Assigned To
:
Alfredo Beaumont
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