Changed indexing to be one-based, instead of zero-based (like Webparser)

This commit is contained in:
Brian Ferguson 2013-01-10 09:38:55 -07:00
parent fba5fb9995
commit 21a716c6db
2 changed files with 4 additions and 2 deletions

View File

@ -175,7 +175,9 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
child->parent->children.push_back(child);
}
child->index = RmReadInt(rm, L"Index", 0);
int index = RmReadInt(rm, L"Index", 1) - 1;
child->index = index >= 0 ? index : 1;
child->ignoreCount = 0!=RmReadInt(rm, L"IgnoreCount", 0);
LPCWSTR type = RmReadString(rm, L"Type", L"FOLDERPATH");

View File

@ -180,7 +180,7 @@ struct ChildMeasure
date(DTYPE_MODIFIED),
iconSize(IS_LARGE),
iconPath(L""),
index(0),
index(1),
ignoreCount(false),
needsIcon(true),
value(0.0),