Commit 3e536029 authored by Enrico Ros's avatar Enrico Ros

Fixing page rotation for thumbnails and scrollview.

CCMAIL: Albert Astals Cid <tsdgeos@terra.es>

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=355341
parent bda48e8b
......@@ -30,13 +30,13 @@ More items (first items will enter 'In progress list' first):
-> wrong zoom buttons order (BR74248) (check consistancy with kdvi/kghostview/.. (not konq))
Porting / In progress on the branch (first item comes first):
-> FIX: sheet rotation (portrait / landscape / ...)
-> ADD: viewport changes the right way when clicking links
-> use a KConfigXT settings framework
-> reading aids (accessibility): paper color: select, mode: normal, invert, contrast, recolor bg/text, enhance: links, ...
-> pageview: fix keys/mouse in single/continous modes
Done (newest feature comes firts):
-> FIX: sheet rotation in landscape case
-> ADD: Some dcop functions (goToPage, openDocument and give # of pages) (Albert)
-> MRG: link following ('actionMovie' kind is missing)
-> ADD: text selection (rectangular blocks) in selection mode
......
......@@ -31,6 +31,12 @@ KPDFPage::KPDFPage( int page, float w, float h, int r )
m_hilighting( false ), m_bookmarking( false ), m_sLeft( 0 ),
m_sTop( 0 ), m_sRight( 0 ), m_sBottom( 0 ), m_text( 0 )
{
// if landscape swap width <-> height (rotate 90deg CCW)
if ( r == 90 || r == 270 )
{
m_width = h;
m_height = w;
}
}
KPDFPage::~KPDFPage()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment