Skip to content
Permalink
Browse files

Fix for composer attribute table

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14776 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Nov 28, 2010
1 parent 5948d9e commit 632ad13627cee1588d2a08b91c0e9c13a069e5de
@@ -66,6 +66,7 @@ QgsComposerTableWidget::QgsComposerTableWidget( QgsComposerAttributeTable* table
mLayerComboBox->blockSignals( false );

updateGuiElements();
on_mComposerMapComboBox_activated( mComposerMapComboBox->currentIndex() );

if ( mComposerTable )
{
@@ -123,7 +124,7 @@ void QgsComposerTableWidget::on_mAttributesPushButton_clicked()
}
}

void QgsComposerTableWidget::on_mComposerMapComboBox_currentIndexChanged( int index )
void QgsComposerTableWidget::on_mComposerMapComboBox_activated( int index )
{
if ( !mComposerTable )
{
@@ -40,7 +40,7 @@ class QgsComposerTableWidget: public QWidget, private Ui::QgsComposerTableWidget
private slots:
void on_mLayerComboBox_currentIndexChanged( int index );
void on_mAttributesPushButton_clicked();
void on_mComposerMapComboBox_currentIndexChanged( int index );
void on_mComposerMapComboBox_activated( int index );
void on_mMaximumColumnsSpinBox_valueChanged( int i );
void on_mMarginSpinBox_valueChanged( double d );
void on_mGridStrokeWidthSpinBox_valueChanged( double d );
@@ -132,11 +132,11 @@ bool QgsComposerAttributeTable::getFeatureAttributes( QList<QgsAttributeMap>& at

if ( mDisplayAttributes.size() < 1 )
{
mVectorLayer->select( mVectorLayer->pendingAllAttributesList(), selectionRect, false, true );
mVectorLayer->select( mVectorLayer->pendingAllAttributesList(), selectionRect, mShowOnlyVisibleFeatures, mShowOnlyVisibleFeatures );
}
else
{
mVectorLayer->select( mDisplayAttributes.toList(), selectionRect, false, true );
mVectorLayer->select( mDisplayAttributes.toList(), selectionRect, mShowOnlyVisibleFeatures, mShowOnlyVisibleFeatures );
}
QgsFeature f;
int counter = 0;

0 comments on commit 632ad13

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