From af615e894d6b339bda1ef3d5b1527d18e11ad231 Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Tue, 12 Jul 2016 15:12:32 +0200
Subject: grc: fix parent getter in rewrite_epy_block

---
 grc/core/Block.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'grc/core/Block.py')

diff --git a/grc/core/Block.py b/grc/core/Block.py
index db71f4a8c9..631dabca19 100644
--- a/grc/core/Block.py
+++ b/grc/core/Block.py
@@ -305,7 +305,7 @@ class Block(Element):
 
     def rewrite_epy_block(self):
         flowgraph = self.parent_flowgraph
-        platform = self.parent_block
+        platform = self.parent_platform
         param_blk = self.params['_io_cache']
         param_src = self.params['_source_code']
 
-- 
cgit v1.2.3