diff --git a/modules/gfx/src/surface.cc b/modules/gfx/src/surface.cc index 2e271df6ded607bbc1596e742a1e5417d6f00fd3..1f4b79161532e331dda66b5cc5ddb1d48b93593c 100644 --- a/modules/gfx/src/surface.cc +++ b/modules/gfx/src/surface.cc @@ -318,7 +318,7 @@ void Surface::Apply(const gfx::GradientLevelColorOp& op, bool store) for(VMap::const_iterator it=vmap_.begin();it!=vmap_.end();++it) { mol::AtomHandle ah = sh_.GetVertex(it->first).atom; if(ah.IsValid()) { - va_.SetColor(it->second,gradient.GetColorAt(normalize(epm.Get(ah),minv,maxv))); + va_.SetColor(it->second,gradient.GetColorAt(normalize(epm.Get(ah,minv),minv,maxv))); } } FlagRefresh();