Skip to content

Commit f1b2af9

Browse files
committed
Merge branch 'master' of github.com:mhugent/Quantum-GIS
2 parents 1d65377 + 3bd37ec commit f1b2af9

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

i18n/qgis_de.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19443,8 +19443,8 @@ Die könnte auf ein Netzwerkproblem oder ein Problem des WMS-Server hindeuten.</
1944319443
<message>
1944419444
<location filename="../src/app/legend/qgslegendlayer.cpp" line="603"/>
1944519445
<location filename="../src/app/legend/qgslegendlayer.cpp" line="665"/>
19446-
<source>Updating feature count for layer </source>
19447-
<translation>Objektanzahl des Layers aktualsieren</translation>
19446+
<source>Updating feature count for layer %1</source>
19447+
<translation>Objektanzahl des Layers %1 aktualsieren</translation>
1944819448
</message>
1944919449
<message>
1945019450
<location filename="../src/app/legend/qgslegendlayer.cpp" line="603"/>

src/app/legend/qgslegendlayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ void QgsLegendLayer::updateItemListCountV2( SymbologyList& itemList, QgsVectorLa
600600

601601
//go through all features and count the number of occurrences
602602
int nFeatures = layer->pendingFeatureCount();
603-
QProgressDialog p( tr( "Updating feature count for layer " ) + layer->name(), tr( "Abort" ), 0, nFeatures );
603+
QProgressDialog p( tr( "Updating feature count for layer %1" ).arg( layer->name() ), tr( "Abort" ), 0, nFeatures );
604604
p.setWindowModality( Qt::WindowModal );
605605
int featuresCounted = 0;
606606

src/app/qgsidentifyresults.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ void QgsIdentifyResults::highlightFeature( QTreeWidgetItem *item )
802802
if ( mHighlights.contains( featItem ) )
803803
return;
804804

805-
int fid = featItem->data( 0, Qt::UserRole ).toInt();
805+
QgsFeatureId fid = featItem->data( 0, Qt::UserRole ).toInt();
806806

807807
QgsFeature feat;
808808
if ( !layer->featureAtId( fid, feat, true, false ) )

src/providers/postgres/qgspostgresprovider.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,10 @@ qint64 QgsPostgresProvider::getBinaryInt( PGresult *queryResult, int row, int co
461461
QString buf = "";
462462
for ( size_t i = 0; i < s; i++ )
463463
{
464-
buf += QString( "%1 " ).arg( *( char * )( p + i ), 0, 16, QLatin1Char( ' ' ) );
464+
buf += QString( "%1 " ).arg( *( unsigned char * )( p + i ), 0, 16, QLatin1Char( ' ' ) );
465465
}
466-
QgsDebugMsg( QString( "int in hex:%1" ).arg( buf ) );
466+
467+
QgsDebugMsgLevel( QString( "int in hex:%1" ).arg( buf ), 3 );
467468

468469
switch ( s )
469470
{
@@ -530,7 +531,7 @@ bool QgsPostgresProvider::getFeature( PGresult *queryResult, int row, bool fetch
530531
try
531532
{
532533
QgsFeatureId oid = getBinaryInt( queryResult, row, 0 );
533-
QgsDebugMsg( QString( "oid=%1" ).arg( oid ) );
534+
QgsDebugMsgLevel( QString( "oid=%1" ).arg( oid ), 3 );
534535

535536
feature.setFeatureId( oid );
536537
feature.clearAttributeMap();
@@ -3145,7 +3146,7 @@ bool QgsPostgresProvider::deduceEndian()
31453146
QgsDebugMsg( QString( "First oid is %1" ).arg( oidValue ) );
31463147

31473148
// compare the two oid values to determine if we need to do an endian swap
3148-
if ( oid == oidValue.toLongLong() )
3149+
if ( oid != oidValue.toLongLong() )
31493150
swapEndian = false;
31503151
}
31513152
connectionRO->closeCursor( "oidcursor" );

0 commit comments

Comments
 (0)