*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Wed, 05 Sep 2001 19:02:21 +0200
changeset 1485 7e96892bc9df
parent 1484 089067851973
child 1486 d549a69ec127
*** empty log message ***
SnapShotImageMemory.st
--- a/SnapShotImageMemory.st	Wed Sep 05 18:59:20 2001 +0200
+++ b/SnapShotImageMemory.st	Wed Sep 05 19:02:21 2001 +0200
@@ -1094,9 +1094,15 @@
 sourceFilename
     "return the sourcefilename if source is extern; nil otherwise"
 
+    |source|
+
     self isMethodOrLazyMethod ifTrue:[
         self sourcePosition notNil ifTrue:[
-            ^ self at:(Method instVarOffsetOf:'source').
+            source := self at:(Method instVarOffsetOf:'source').
+            source isString ifTrue:[
+                source := memory printStringOfString:source.
+            ].
+            ^ source.
         ].
         ^ nil
     ].
@@ -1337,7 +1343,7 @@
     |fileName aStream package source|
 
     package := self package.
-    source := self at:(Method instVarOffsetOf:'source').
+    source := self sourceFilename.
     package notNil ifTrue:[
         fileName := Smalltalk getSourceFileName:(package copyReplaceAll:$: with:$/) , '/' , source.
         fileName notNil ifTrue:[