Skip to content

Commit f810e0f

Browse files
committed
Merge branch 'develop' of https://github.com/MapWindow/MapWinGIS into develop
2 parents 2cef07a + 38f3fc3 commit f810e0f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/COM classes/ShapefileCategories.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,11 +617,11 @@ void CShapefileCategories::ApplyExpressionCore(long CategoryIndex, long startRow
617617
// Saving results
618618
// -------------------------------------------------------------
619619
for (unsigned long i = 0; i < results.size(); i++) {
620-
// Is this a category we need?
621-
if (!allCategories && i != CategoryIndex)
620+
// Is this a category we need?
621+
const int categoryIndex = results[i];
622+
if (!allCategories && categoryIndex != CategoryIndex)
622623
continue;
623624

624-
const int categoryIndex = results[i];
625625
const int rowIndex = startRowIndex + i;
626626
_shapefile->put_ShapeCategory(rowIndex, categoryIndex);
627627
_shapefile->put_ShapeRotation(rowIndex, rotations[categoryIndex + 1][i]);

src/MapWinGIS.idl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6918,6 +6918,7 @@ library MapWinGIS
69186918

69196919
[id(48)] IDispatch* GetColorScheme(long LayerHandle);
69206920
[id(92)] VARIANT_BOOL SetImageLayerColorScheme(LONG LayerHandle, IDispatch* ColorScheme);
6921+
[id(143)] void ReSourceLayer(long LayerHandle, BSTR newSrcPath);
69216922

69226923
[id(263)] VARIANT_BOOL ReloadOgrLayerFromSource(long OgrLayerHandle);
69236924
[id(264)] void RestartBackgroundLoading(long OgrLayerHandle);

0 commit comments

Comments
 (0)