From c0c032a4c29da39d91d1d1df415a0bb8cb416462 Mon Sep 17 00:00:00 2001 From: OffrayLuna Date: Tue, 29 Aug 2017 19:54:11 +0000 Subject: [PATCH] Migration: Solving empty tags default value. --- src/Grafoscopio/GrafoscopioNode.class.st | 3 ++- src/Grafoscopio/GrafoscopioNotebook.class.st | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Grafoscopio/GrafoscopioNode.class.st b/src/Grafoscopio/GrafoscopioNode.class.st index e3000a2..7f0038b 100644 --- a/src/Grafoscopio/GrafoscopioNode.class.st +++ b/src/Grafoscopio/GrafoscopioNode.class.st @@ -580,6 +580,7 @@ GrafoscopioNode >> isEmpty [ { #category : #operation } GrafoscopioNode >> isTaggedAs: aString [ + self tags ifEmpty: [ self tagAs: 'text' ]. ^ self tags includes: aString ] @@ -955,7 +956,7 @@ GrafoscopioNode >> tagAs: aTag [ { #category : #accessing } GrafoscopioNode >> tags [ - "Returns the receiver tags. For the moment is just one... yes silly, but will be extended properly" + "I returns the receiver tags." | migration | tags isString ifTrue: [ diff --git a/src/Grafoscopio/GrafoscopioNotebook.class.st b/src/Grafoscopio/GrafoscopioNotebook.class.st index 619b2e4..10c7501 100644 --- a/src/Grafoscopio/GrafoscopioNotebook.class.st +++ b/src/Grafoscopio/GrafoscopioNotebook.class.st @@ -67,8 +67,7 @@ GrafoscopioNotebook >> addCommandFrom: dictionary into: stream [ { #category : #'editing nodes' } GrafoscopioNotebook >> addNode [ - | addedNode | - addedNode := tree highlightedItem content addNodeAfterMe. + self currentNodeContent addNodeAfterMe. self notebookContent: notebook. ]