Skip to content

Commit b91d93e

Browse files
committedSep 19, 2016
fix 62ea90c and globe plugin
1 parent 172c12b commit b91d93e

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5090,7 +5090,8 @@ void QgisApp::dxfExport()
50905090
//extent
50915091
if ( d.exportMapExtent() )
50925092
{
5093-
dxfExport.setExtent( mapCanvas()->extent() );
5093+
QgsCoordinateTransform t( mapCanvas()->mapSettings().destinationCrs(), QgsCoordinateReferenceSystem( d.crs(), QgsCoordinateReferenceSystem::InternalCrsId ) );
5094+
dxfExport.setExtent( t.transformBoundingBox( mapCanvas()->extent() ) );
50945095
}
50955096
}
50965097

‎src/core/qgsdatasourceuri.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class CORE_EXPORT QgsDataSourceUri
238238
bool mUseEstimatedMetadata;
239239
//! Disable SelectAtId capability (eg. to trigger the attribute table memory model for expensive views)
240240
bool mSelectAtIdDisabled;
241-
//! geometry type (or QGis::WKBUnknown if not specified)
241+
//! geometry type (or QgsWkbTypes::Unknown if not specified)
242242
QgsWkbTypes::Type mWkbType;
243243
//! SRID or a null string if not specified
244244
QString mSrid;

‎src/core/qgsprojectproperty.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class CORE_EXPORT QgsProperty
5151
QgsProperty()
5252
{}
5353

54-
virtual ~ QgsProperty()
54+
virtual ~QgsProperty()
5555
{}
5656

5757
/** Dumps out the keys and values
@@ -190,7 +190,7 @@ class CORE_EXPORT QgsPropertyKey : public QgsProperty
190190
{
191191
public:
192192
QgsPropertyKey( const QString &name = "" );
193-
virtual ~ QgsPropertyKey();
193+
virtual ~QgsPropertyKey();
194194

195195
/// every key has a name
196196
// @{

‎src/core/symbology-ng/qgsrenderer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class CORE_EXPORT QgsFeatureRenderer
213213
* @param context render context
214214
* @note added in QGIS 2.12
215215
*/
216-
virtual QgsSymbolList symbols( QgsRenderContext& context ) { Q_UNUSED( context ); return QgsSymbolList(); }
216+
virtual QgsSymbolList symbols( QgsRenderContext& context ) { Q_UNUSED( context ); return QgsSymbolList(); }
217217

218218
bool usingSymbolLevels() const { return mUsingSymbolLevels; }
219219
void setUsingSymbolLevels( bool usingSymbolLevels ) { mUsingSymbolLevels = usingSymbolLevels; }

‎src/plugins/globe/globe_plugin.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,10 @@ void GlobePlugin::addModelLayer( QgsVectorLayer* vLayer, QgsGlobeVectorLayerConf
777777
featureOpt.setLayer( vLayer );
778778
osgEarth::Style style;
779779

780-
if ( !vLayer->renderer()->symbols().isEmpty() )
780+
QgsRenderContext ctx;
781+
if ( !vLayer->renderer()->symbols( ctx ).isEmpty() )
781782
{
782-
Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
783+
Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols( ctx ) )
783784
{
784785
if ( sym->type() == QgsSymbol::Line )
785786
{

‎src/providers/grass/qgsgrassgislib.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extern "C"
4040
#include "qgsgeometry.h"
4141
#include "qgsrectangle.h"
4242
#include "qgsconfig.h"
43+
#include "qgsunittypes.h"
4344

4445
#include <QByteArray>
4546
#include <QFileDialog>
@@ -1060,7 +1061,7 @@ int GRASS_LIB_EXPORT G_get_cellhd( const char *name, const char *mapset, struct
10601061

10611062
double QgsGrassGisLib::G_database_units_to_meters_factor( void )
10621063
{
1063-
return QGis::fromUnitToUnitFactor( mCrs.mapUnits(), Qgis::Meters );
1064+
return QgsUnitTypes::fromUnitToUnitFactor( mCrs.mapUnits(), QgsUnitTypes::DistanceMeters );
10641065
}
10651066

10661067
double QgsGrassGisLib::G_area_of_cell_at_row( int row )

0 commit comments

Comments
 (0)
Please sign in to comment.