Skip to content

Commit

Permalink
Fix html test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Aug 8, 2012
1 parent 852c5e7 commit 12f521e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/src/core/qgscompositionchecker.cpp
Expand Up @@ -41,7 +41,8 @@ bool QgsCompositionChecker::testComposition( int page )
return false;
}

#if 0 //fake mode to generate expected image
#if 0
//fake mode to generate expected image
//assume 300 dpi and size of the control image 3507 * 2480
QImage outputImage( QSize( 3507, 2480 ), QImage::Format_ARGB32 );
mComposition->setPlotStyle( QgsComposition::Print );
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgscomposerhtml.cpp
Expand Up @@ -74,7 +74,7 @@ void TestQgsComposerHtml::table()
void TestQgsComposerHtml::tableMultiFrame()
{
QgsComposerHtml* htmlItem = new QgsComposerHtml( mComposition, false );
QgsComposerFrame* htmlFrame = new QgsComposerFrame( mComposition, htmlItem, 0, 0, 100, 200 );
QgsComposerFrame* htmlFrame = new QgsComposerFrame( mComposition, htmlItem, 10, 10, 100, 50 );
htmlItem->addFrame( htmlFrame );
htmlItem->setResizeMode( QgsComposerMultiFrame::ExtendToNextPage );
bool result = true;
Expand Down

0 comments on commit 12f521e

Please sign in to comment.