Exemple #1
0
bool QgsMapToPixel::updateMatrix()
{
  QTransform newMatrix = transform();

  // http://hub.qgis.org/issues/12757
  if ( !newMatrix.isInvertible() )
    return false;

  mMatrix = newMatrix;
  return true;
}