This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch upstream-master
in repository pktools.

commit ce13328dfd8e57074f7ab594a0650afbc53f35fe
Author: Pieter Kempeneers <kempe...@gmail.com>
Date:   Thu Sep 25 10:31:15 2014 -0700

    fixed bug in pkextract.cc for proportion rule
---
 src/apps/pkextract.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/apps/pkextract.cc b/src/apps/pkextract.cc
index 51646cc..8216d4b 100644
--- a/src/apps/pkextract.cc
+++ b/src/apps/pkextract.cc
@@ -1673,7 +1673,8 @@ int main(int argc, char *argv[])
                  if(verbose_opt[0])
                    std::cout << "number of points in polygon: " << 
nPointPolygon << std::endl;
                  stat.normalize_pct(polyClassValues);
-                 for(int index=0;index<polyValues.size();++index){
+                 //hiero (replaced polyValues with polyClassValues)
+                 for(int index=0;index<polyClassValues.size();++index){
                    double theValue=polyClassValues[index];
                    ostringstream fs;
                    fs << class_opt[index];
@@ -2241,7 +2242,7 @@ int main(int argc, char *argv[])
                  if(verbose_opt[0])
                    std::cout << "number of points in polygon: " << 
nPointPolygon << std::endl;
                  stat.normalize_pct(polyClassValues);
-                 for(int index=0;index<polyValues.size();++index){
+                 for(int index=0;index<polyClassValues.size();++index){
                    double theValue=polyClassValues[index];
                    ostringstream fs;
                    fs << class_opt[index];

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/pktools.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to