150 EXPORT_C void CTextPageRegionPrinter::PrintBandL(CGraphicsDevice* aImageDevice,TInt aPageNo,const TBandAttributes& aBandInPixels) |
155 EXPORT_C void CTextPageRegionPrinter::PrintBandL(CGraphicsDevice* aImageDevice,TInt aPageNo,const TBandAttributes& aBandInPixels) |
151 // |
156 // |
152 // Traps leaves |
157 // Traps leaves |
153 // |
158 // |
154 { |
159 { |
|
160 if (!iPageList) |
|
161 { |
|
162 OstTrace0( TRACE_FATAL, DUP1_CTEXTPAGEREGIONPRINTER_PRINTBANDL, "EFInvalidPageList" ); |
|
163 } |
155 __ASSERT_ALWAYS(iPageList!=NULL,FormPanic(EFInvalidPageList)); |
164 __ASSERT_ALWAYS(iPageList!=NULL,FormPanic(EFInvalidPageList)); |
|
165 if (aPageNo-iFirstPage>=iPageList->Count()) |
|
166 { |
|
167 OstTrace0( TRACE_DUMP, CTEXTPAGEREGIONPRINTER_PRINTBANDL, "EFInvalidPageNumber" ); |
|
168 } |
|
169 if (aPageNo<iFirstPage) |
|
170 { |
|
171 OstTrace0( TRACE_DUMP, DUP2_CTEXTPAGEREGIONPRINTER_PRINTBANDL, "EFInvalidPageNumber" ); |
|
172 } |
156 __ASSERT_DEBUG(aPageNo-iFirstPage<iPageList->Count(),FormPanic(EFInvalidPageNumber)); |
173 __ASSERT_DEBUG(aPageNo-iFirstPage<iPageList->Count(),FormPanic(EFInvalidPageNumber)); |
157 __ASSERT_DEBUG(aPageNo>=iFirstPage,FormPanic(EFInvalidPageNumber)); |
174 __ASSERT_DEBUG(aPageNo>=iFirstPage,FormPanic(EFInvalidPageNumber)); |
158 |
175 |
159 TRAPD(err,PrintBand2L(aImageDevice,aPageNo,aBandInPixels)); |
176 TRAPD(err,PrintBand2L(aImageDevice,aPageNo,aBandInPixels)); |
160 if (err) |
177 if (err) |