Fixing a bug on cut & paste between notebooks.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2017-03-27 22:51:49 +00:00
parent 6016a1f90c
commit 85e5bf1e1d
3 changed files with 8 additions and 3 deletions

View File

@ -42,8 +42,8 @@ GrafoscopioNode class >> cleanTreeRootReferences [
clipboard preorderTraversal allButFirstDo: [ :n |
ref := n.
n level - 1 timesRepeat: [ ref := ref parent ].
ref ifNotNil: [ ref parent: nil ]
]
ref parent = clipboard parent ifTrue: [ ref parent: nil ]].
clipboard parent: nil.
]
{ #category : #accessing }

View File

@ -127,8 +127,8 @@ GrafoscopioNotebook >> exportAsMarkdown [
workingFile
ifNil: [ self inform: 'File NOT exported. Please save the notebook on hard drive first' ]
ifNotNil: [
self markdownFile exists ifTrue: [ self markdownFile delete ].
self markdownFile
exists ifTrue: [ self markdownFile delete ];
ensureCreateFile;
writeStreamDo: [:stream | stream nextPutAll: self notebook asMarkdown].
self inform: ('File exported as: ', String cr, self markdownFile fullName)]

View File

@ -12,6 +12,11 @@ ManifestGrafoscopio class >> ruleRBAssignmentInIfTrueRuleV1FalsePositive [
^ #(#(#(#RGMethodDefinition #(#GrafoscopioNode #embedNodes #false)) #'2017-02-16T20:07:02.600781-05:00') )
]
{ #category : #'code-critics' }
ManifestGrafoscopio class >> ruleRBBooleanPrecedenceRuleV1FalsePositive [
^ #(#(#(#RGMethodDefinition #(#'GrafoscopioNode class' #cleanTreeRootReferences #true)) #'2017-03-27T22:18:17.447627-05:00') )
]
{ #category : #'code-critics' }
ManifestGrafoscopio class >> ruleRBClassNameInSelectorRuleV1FalsePositive [
^ #(#(#(#RGMethodDefinition #(#'Documentation class' #current #true)) #'2016-10-07T19:39:23.013722-05:00') )