Explorar o código

pygrass: backported RasterSegment fix https://trac.osgeo.org/grass/changeset/65174 related to https://trac.osgeo.org/grass/ticket/2599

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65723 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi %!s(int64=9) %!d(string=hai) anos
pai
achega
c9a5cc0d10
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lib/python/pygrass/raster/__init__.py

+ 2 - 2
lib/python/pygrass/raster/__init__.py

@@ -412,8 +412,8 @@ class RasterSegment(RasterAbstractBase):
                 self.segment.open(self)
                 self.segment.open(self)
                 self.map2segment()
                 self.map2segment()
                 self.segment.flush()
                 self.segment.flush()
-                self.cats.read(self)
-                self.hist.read(self.name)
+                self.cats.read()
+                self.hist.read()
 
 
                 if self.mode == "rw":
                 if self.mode == "rw":
                     warning(_(WARN_OVERWRITE.format(self)))
                     warning(_(WARN_OVERWRITE.format(self)))