Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Nov 28, 2010
1 parent 5948d9e commit 632ad13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/app/composer/qgscomposertablewidget.cpp
Expand Up @@ -66,6 +66,7 @@ QgsComposerTableWidget::QgsComposerTableWidget( QgsComposerAttributeTable* table
mLayerComboBox->blockSignals( false );

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

if ( mComposerTable )
{
Expand Down Expand Up @@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposertablewidget.h
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposerattributetable.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 632ad13

Please sign in to comment.