Skip to content

Commit 0e2ffec

Browse files
author
mhugent
committedNov 28, 2010
Fix for composer attribute table
git-svn-id: http://svn.osgeo.org/qgis/trunk@14776 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d0c6f9b commit 0e2ffec

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
 

‎src/app/composer/qgscomposertablewidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ QgsComposerTableWidget::QgsComposerTableWidget( QgsComposerAttributeTable* table
6666
mLayerComboBox->blockSignals( false );
6767

6868
updateGuiElements();
69+
on_mComposerMapComboBox_activated( mComposerMapComboBox->currentIndex() );
6970

7071
if ( mComposerTable )
7172
{
@@ -123,7 +124,7 @@ void QgsComposerTableWidget::on_mAttributesPushButton_clicked()
123124
}
124125
}
125126

126-
void QgsComposerTableWidget::on_mComposerMapComboBox_currentIndexChanged( int index )
127+
void QgsComposerTableWidget::on_mComposerMapComboBox_activated( int index )
127128
{
128129
if ( !mComposerTable )
129130
{

‎src/app/composer/qgscomposertablewidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class QgsComposerTableWidget: public QWidget, private Ui::QgsComposerTableWidget
4040
private slots:
4141
void on_mLayerComboBox_currentIndexChanged( int index );
4242
void on_mAttributesPushButton_clicked();
43-
void on_mComposerMapComboBox_currentIndexChanged( int index );
43+
void on_mComposerMapComboBox_activated( int index );
4444
void on_mMaximumColumnsSpinBox_valueChanged( int i );
4545
void on_mMarginSpinBox_valueChanged( double d );
4646
void on_mGridStrokeWidthSpinBox_valueChanged( double d );

‎src/core/composer/qgscomposerattributetable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ bool QgsComposerAttributeTable::getFeatureAttributes( QList<QgsAttributeMap>& at
132132

133133
if ( mDisplayAttributes.size() < 1 )
134134
{
135-
mVectorLayer->select( mVectorLayer->pendingAllAttributesList(), selectionRect, false, true );
135+
mVectorLayer->select( mVectorLayer->pendingAllAttributesList(), selectionRect, mShowOnlyVisibleFeatures, mShowOnlyVisibleFeatures );
136136
}
137137
else
138138
{
139-
mVectorLayer->select( mDisplayAttributes.toList(), selectionRect, false, true );
139+
mVectorLayer->select( mDisplayAttributes.toList(), selectionRect, mShowOnlyVisibleFeatures, mShowOnlyVisibleFeatures );
140140
}
141141
QgsFeature f;
142142
int counter = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.