Tag: cws_src680_rpt23fix02 User: oj Date: 2007-07-24 07:29:27+0000 Modified: dba/reportdesign/source/ui/report/ReportSection.cxx
Log: #i79913# repaint failure File Changes: Directory: /dba/reportdesign/source/ui/report/ ============================================== File [changed]: ReportSection.cxx Url: http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/report/ReportSection.cxx?r1=1.2.4.1&r2=1.2.4.2 Delta lines: +15 -15 --------------------- --- ReportSection.cxx 2007-07-23 11:59:20+0000 1.2.4.1 +++ ReportSection.cxx 2007-07-24 07:29:25+0000 1.2.4.2 @@ -4,9 +4,9 @@ * * $RCSfile: ReportSection.cxx,v $ * - * $Revision: 1.2.4.1 $ + * $Revision: 1.2.4.2 $ * - * last change: $Author: oj $ $Date: 2007/07/23 11:59:20 $ + * last change: $Author: oj $ $Date: 2007/07/24 07:29:25 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -177,19 +177,6 @@ { if ( m_pView ) { - const Region aReg(rRect); - m_pView->CompleteRedraw(this,aReg); - } -} -//------------------------------------------------------------------------------ -void OReportSection::Resize() -{ - Window::Resize(); - if ( m_xSection.is() && m_pPage && m_pView ) - { - uno::Reference<report::XReportDefinition> xReportDefinition = m_xSection->getReportDefinition(); - m_pPage->SetSize( Size( getStyleProperty<awt::Size>(xReportDefinition,PROPERTY_PAPERSIZE).Width,2*m_xSection->getHeight()) ); - const Size aPageSize = m_pPage->GetSize(); // repaint, get PageView and prepare Region SdrPageView* pPgView = m_pView->GetSdrPageView(); const Region aPaintRectRegion(rRect); @@ -215,6 +202,19 @@ } + const Region aReg(rRect); + m_pView->CompleteRedraw(this,aReg); + } +} +//------------------------------------------------------------------------------ +void OReportSection::Resize() +{ + Window::Resize(); + if ( m_xSection.is() && m_pPage && m_pView ) + { + uno::Reference<report::XReportDefinition> xReportDefinition = m_xSection->getReportDefinition(); + m_pPage->SetSize( Size( getStyleProperty<awt::Size>(xReportDefinition,PROPERTY_PAPERSIZE).Width,2*m_xSection->getHeight()) ); + const Size aPageSize = m_pPage->GetSize(); const sal_Int32 nLeftMargin = getStyleProperty<sal_Int32>(xReportDefinition,PROPERTY_LEFTMARGIN); const sal_Int32 nRightMargin = getStyleProperty<sal_Int32>(xReportDefinition,PROPERTY_RIGHTMARGIN); m_pView->SetWorkArea( Rectangle( Point( nLeftMargin, 0), Size(aPageSize.Width() - nLeftMargin - nRightMargin,aPageSize.Height()) ) ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
