Skip to content

Commit 70d5857

Browse files
committed
[composer] Fix restoration of grid color alpha channel from 2.4 projects
1 parent 5a6f68b commit 70d5857

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/composer/qgscomposertable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ bool QgsComposerTable::tableReadXML( const QDomElement& itemElem, const QDomDocu
313313
int gridRed = itemElem.attribute( "gridColorRed", "0" ).toInt();
314314
int gridGreen = itemElem.attribute( "gridColorGreen", "0" ).toInt();
315315
int gridBlue = itemElem.attribute( "gridColorBlue", "0" ).toInt();
316-
mGridColor = QColor( gridRed, gridGreen, gridBlue );
316+
int gridAlpha = itemElem.attribute( "gridColorAlpha", "255" ).toInt();
317+
mGridColor = QColor( gridRed, gridGreen, gridBlue, gridAlpha );
317318
}
318319

319320
//restore column specifications

0 commit comments

Comments
 (0)