"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gmic-qt/src/FilterParameters/AbstractParameter.cpp" between
gmic_2.8.1.tar.gz and gmic_2.8.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

AbstractParameter.cpp  (gmic_2.8.1):AbstractParameter.cpp  (gmic_2.8.2)
skipping to change at line 226 skipping to change at line 226
QString open = re.cap(2); QString open = re.cap(2);
const char * end = nullptr; const char * end = nullptr;
if (open == "(") { if (open == "(") {
end = strstr(text + prefixLength, ")"); end = strstr(text + prefixLength, ")");
} else if (open == "{") { } else if (open == "{") {
end = strstr(text + prefixLength, "}"); end = strstr(text + prefixLength, "}");
} else if (open == "[") { } else if (open == "[") {
end = strstr(text + prefixLength, "]"); end = strstr(text + prefixLength, "]");
} }
if (!end) { if (!end) {
Logger::log(QString("[gmic-qt] Parse error in %1 parameter.").arg(type)); Logger::error(QString("Parse error in %1 parameter.").arg(type));
return QStringList(); return QStringList();
} }
QString values = str.mid(prefixLength, -1).left(end - (text + prefixLength)).t rimmed(); QString values = str.mid(prefixLength, -1).left(end - (text + prefixLength)).t rimmed();
length = 1 + end - text; length = 1 + end - text;
if (text[length] == '_' && text[length + 1] >= '0' && text[length + 1] <= '2') { if (text[length] == '_' && text[length + 1] >= '0' && text[length + 1] <= '2') {
_defaultVisibilityState = static_cast<VisibilityState>(text[length + 1] - '0 '); _defaultVisibilityState = static_cast<VisibilityState>(text[length + 1] - '0 ');
_visibilityPropagation = PropagateNone; _visibilityPropagation = PropagateNone;
switch (text[length + 2]) { switch (text[length + 2]) {
case '-': case '-':
skipping to change at line 253 skipping to change at line 253
break; break;
case '*': case '*':
_visibilityPropagation = PropagateUpDown; _visibilityPropagation = PropagateUpDown;
length += 3; length += 3;
break; break;
default: default:
length += 2; length += 2;
break; break;
} }
if (NoValueParameters.contains(type)) { if (NoValueParameters.contains(type)) {
Logger::log(QString("[gmic-qt] Warning: %1 parameter should not define vis ibility. Ignored.").arg(result.first())); Logger::warning(QString("Warning: %1 parameter should not define visibilit y. Ignored.").arg(result.first()));
_defaultVisibilityState = AbstractParameter::VisibleParameter; _defaultVisibilityState = AbstractParameter::VisibleParameter;
_visibilityPropagation = PropagateNone; _visibilityPropagation = PropagateNone;
} }
} }
while (text[length] && (text[length] == ',' || str[length].isSpace())) { while (text[length] && (text[length] == ',' || str[length].isSpace())) {
++length; ++length;
} }
result << values; result << values;
return result; return result;
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)