Skip to content
Permalink
Browse files

Fix bad backports

  • Loading branch information
nyalldawson committed Oct 20, 2016
1 parent 6d92ed4 commit 6c0752e7ee89b849822a29dbaeeb495c24f8a735
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/qgsmapoverviewcanvas.cpp
  2. +1 −1 tests/src/core/testqgslegendrenderer.cpp
@@ -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() );
@@ -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" );

0 comments on commit 6c0752e

Please sign in to comment.
You can’t perform that action at this time.