We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ddb55a commit 423c7b6Copy full SHA for 423c7b6
src/chart/generator/plot.cpp
@@ -23,8 +23,10 @@ Plot::MarkersInfo interpolate(const Plot::MarkersInfo &op1,
23
iter1++, iter2++) {
24
if (iter1->first != iter2->first)
25
throw std::logic_error("invalid map operation");
26
- result.insert(std::make_pair(iter1->first,
27
- interpolate(iter1->second, iter2->second, factor)));
+ if (iter1->second.get() || iter2->second.get()) {
+ result.insert(std::make_pair(iter1->first,
28
+ interpolate(iter1->second, iter2->second, factor)));
29
+ }
30
}
31
return result;
32
0 commit comments