<div dir="ltr"><div>Hey guys, I have tried to put this issue on the tracking manager but I have no account for this. </div><div><br></div><div>I think this issue is related to another <a href="https://hub.qgis.org/issues/8822">https://hub.qgis.org/issues/8822</a>, however, the bugfix applied to close this effect is not suffcient for this case. </div>

<div><br></div><div>The shapefile is inconsistent , two files "*packed.shp" and *packed.shx" are created. The error occurs in line:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 OGR_DS_ExecuteSQL (ogrDataSource, sql.constData (), NULL, NULL);</blockquote><div><br></div><div>in function "repack" of  "qgsogrprovider.cpp".</div><div><br></div><div>And the log was:</div><div><br>

</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">src/providers/ogr/qgsogrprovider.cpp: 138: (repack) SQL: REPACK LG_CULT<br>

qgis: shpopen.c:1160: SHPWriteObject: Assertion `psObject->nSHPType == psSHP->nShapeType || psObject->nSHPType == 0' failed.</blockquote></div><div><br></div><div><br></div><div>Instructions to reproduce this bug: </div>

<div><ol><li>Download qgis project: <a href="https://db.tt/dOBljNoG">https://db.tt/dOBljNoG</a><br></li><li>Open the proyect (provided in zip).<br></li><li>Select the features with attribute "GEOCODE" equals to "Merge_A" and "Merge_B".<br>

</li><li>Merge Selected Features (current two features is selected).<br></li><li>Press button "Save Layer Edits".<br></li></ol><div><br></div></div><div>Environment:</div><div><div><ul><li>Versión de QGIS<span class="" style="white-space:pre">     </span>2.0.1-Dufour<span class="" style="white-space:pre">      </span></li>

<li>Revisión del código de QGIS<span class="" style="white-space:pre">  </span>d94c044<br></li><li>Compilado contra Qt<span class="" style="white-space:pre"> </span>4.8.5<span class="" style="white-space:pre">     </span></li>

<li>Ejecutándose contra Qt<span class="" style="white-space:pre">       </span>4.8.5<br></li><li>Compilado contra GDAL/OGR<span class="" style="white-space:pre">     </span>1.10.0<span class="" style="white-space:pre">    </span></li>

<li>Ejecutándose contra GDAL/OGR<span class="" style="white-space:pre"> </span>1.10.1<br></li><li>Compilado contra GEOS<span class="" style="white-space:pre">        </span>3.4.2-CAPI-1.8.2<span class="" style="white-space:pre">  </span></li>

<li>Ejecutándose contra GEOS<span class="" style="white-space:pre">     </span>3.4.2-CAPI-1.8.2 r3921<br></li><li>Versión del cliente PostgreSQL<span class="" style="white-space:pre">       </span>9.2.4<span class="" style="white-space:pre">     </span></li>

<li>Versión de SpatiaLite<span class="" style="white-space:pre">        </span>4.1.1<br></li><li>Versión de QWT<span class="" style="white-space:pre">        </span>5.2.3<span class="" style="white-space:pre">     </span></li><li>Versión de PROJ.4<span class="" style="white-space:pre">    </span>480<br>

</li><li>Versión de QScintilla2<span class="" style="white-space:pre">    </span>2.7.2<br></li></ul><div><br></div></div></div><div>Thanks in advance.</div><div><br></div><div><br></div></div>