Skip to content

Commit

Permalink
Fix bad backports
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 20, 2016
1 parent 6d92ed4 commit 6c0752e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsmapoverviewcanvas.cpp
Expand Up @@ -293,7 +293,7 @@ void QgsPanningWidget::setPolygon( const QPolygon& p )
mPoly = p;

//ensure polygon is closed
if ( mPoly.at( 0 ) != mPoly.at( mPoly.length() - 1 ) )
if ( mPoly.at( 0 ) != mPoly.at( mPoly.size() - 1 ) )
mPoly.append( mPoly.at( 0 ) );

setGeometry( p.boundingRect() );
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgslegendrenderer.cpp
Expand Up @@ -341,7 +341,7 @@ void TestQgsLegendRenderer::testTallSymbol()
{
QString testName = "legend_tall_symbol";

QgsCategorizedSymbolRenderer* catRenderer = dynamic_cast<QgsCategorizedSymbolRenderer*>( mVL3->renderer() );
QgsCategorizedSymbolRendererV2* catRenderer = dynamic_cast<QgsCategorizedSymbolRendererV2*>( mVL3->renderer() );
QVERIFY( catRenderer );
catRenderer->updateCategoryLabel( 1, "This is\nthree lines\nlong label" );

Expand Down

0 comments on commit 6c0752e

Please sign in to comment.