From 269e5b28db53bd93dea57b2e41ae7a9bc2e3ad89 Mon Sep 17 00:00:00 2001 From: Ansgar Philippsen <ansgar.philippsen@gmail.com> Date: Sun, 24 Oct 2010 17:10:55 -0400 Subject: [PATCH] re-applied lost commit bc3f186d --- modules/gfx/src/surface.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gfx/src/surface.cc b/modules/gfx/src/surface.cc index 2e271df6d..1f4b79161 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(); -- GitLab