Skip to content

Commit 7878b3f

Browse files
committed
Fix #11971 - Fix display of MS SQL layers with z and m values
Funded by TechnoglogyOne, Australia - Backported to 2.8.3 - Cherry-picked from 012f322
1 parent 833988f commit 7878b3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/mssql/qgsmssqlgeometryparser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,9 @@ unsigned char* QgsMssqlGeometryParser::ParseSqlGeometry( unsigned char* pszInput
493493

494494
chProps = ReadByte( 5 );
495495

496-
if ( chProps & SP_HASMVALUES )
496+
if ( chProps & SP_HASZVALUES && chProps & SP_HASMVALUES )
497497
nPointSize = 32;
498-
else if ( chProps & SP_HASZVALUES )
498+
else if ( chProps & SP_HASZVALUES || chProps & SP_HASMVALUES)
499499
nPointSize = 24;
500500
else
501501
nPointSize = 16;

0 commit comments

Comments
 (0)