@@ -1480,7 +1480,7 @@ void QgsComposerMap::drawGrid( QPainter* p )
1480
1480
{
1481
1481
// start mark
1482
1482
crossEnd1 = QgsSymbolLayerV2Utils::pointOnLineWithDistance ( vIt->second .p1 (), vIt->second .p2 (), mCrossLength );
1483
- drawGridLine ( QLineF ( vIt->second .p1 (), crossEnd1 ), context );
1483
+ drawGridLine ( QLineF ( vIt->second .p1 () * dotsPerMM , crossEnd1 * dotsPerMM ), context );
1484
1484
1485
1485
// test for intersection with every horizontal line
1486
1486
hIt = horizontalLines.constBegin ();
@@ -1490,20 +1490,20 @@ void QgsComposerMap::drawGrid( QPainter* p )
1490
1490
{
1491
1491
crossEnd1 = QgsSymbolLayerV2Utils::pointOnLineWithDistance ( intersectionPoint, vIt->second .p1 (), mCrossLength );
1492
1492
crossEnd2 = QgsSymbolLayerV2Utils::pointOnLineWithDistance ( intersectionPoint, vIt->second .p2 (), mCrossLength );
1493
- drawGridLine ( QLineF ( crossEnd1, crossEnd2 ), context );
1493
+ drawGridLine ( QLineF ( crossEnd1 * dotsPerMM , crossEnd2 * dotsPerMM ), context );
1494
1494
}
1495
1495
}
1496
1496
// end mark
1497
1497
QPointF crossEnd2 = QgsSymbolLayerV2Utils::pointOnLineWithDistance ( vIt->second .p2 (), vIt->second .p1 (), mCrossLength );
1498
- drawGridLine ( QLineF ( vIt->second .p2 (), crossEnd2 ), context );
1498
+ drawGridLine ( QLineF ( vIt->second .p2 () * dotsPerMM , crossEnd2 * dotsPerMM ), context );
1499
1499
}
1500
1500
1501
1501
hIt = horizontalLines.constBegin ();
1502
1502
for ( ; hIt != horizontalLines.constEnd (); ++hIt )
1503
1503
{
1504
1504
// start mark
1505
1505
crossEnd1 = QgsSymbolLayerV2Utils::pointOnLineWithDistance ( hIt->second .p1 (), hIt->second .p2 (), mCrossLength );
1506
- drawGridLine ( QLineF ( hIt->second .p1 (), crossEnd1 ), context );
1506
+ drawGridLine ( QLineF ( hIt->second .p1 () * dotsPerMM , crossEnd1 * dotsPerMM ), context );
1507
1507
1508
1508
vIt = verticalLines.constBegin ();
1509
1509
for ( ; vIt != verticalLines.constEnd (); ++vIt )
@@ -1512,12 +1512,12 @@ void QgsComposerMap::drawGrid( QPainter* p )
1512
1512
{
1513
1513
crossEnd1 = QgsSymbolLayerV2Utils::pointOnLineWithDistance ( intersectionPoint, hIt->second .p1 (), mCrossLength );
1514
1514
crossEnd2 = QgsSymbolLayerV2Utils::pointOnLineWithDistance ( intersectionPoint, hIt->second .p2 (), mCrossLength );
1515
- drawGridLine ( QLineF ( crossEnd1, crossEnd2 ), context );
1515
+ drawGridLine ( QLineF ( crossEnd1 * dotsPerMM , crossEnd2 * dotsPerMM ), context );
1516
1516
}
1517
1517
}
1518
1518
// end mark
1519
1519
crossEnd1 = QgsSymbolLayerV2Utils::pointOnLineWithDistance ( hIt->second .p2 (), hIt->second .p1 (), mCrossLength );
1520
- drawGridLine ( QLineF ( hIt->second .p2 (), crossEnd1 ), context );
1520
+ drawGridLine ( QLineF ( hIt->second .p2 () * dotsPerMM , crossEnd1 * dotsPerMM ), context );
1521
1521
}
1522
1522
}
1523
1523
// reset composition mode
0 commit comments