Skip to content

Commit

Permalink
yet another small fix to font variables
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Nov 10, 2020
1 parent b24417e commit 51d5ecd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Spec2-Adapters-Morphic/SpStyleFont.class.st
Expand Up @@ -249,10 +249,10 @@ SpStyleFont >> mergeWith: otherProperty [

"Ensure predefined font will be overriden even if nil."
otherProperty name
ifNotNil: [ :aName |
ifNotNil: [
merged
writeSlotNamed: 'predefinedFont' value: nil;
writeSlotNamed: 'name' value: aName ].
writeSlotNamed: 'name' value: self nameVariable ].

^ merged
]
Expand All @@ -272,7 +272,7 @@ SpStyleFont >> name: aString [
{ #category : #'accessing variables' }
SpStyleFont >> nameVariable [

^ name
^ self toVariable: name
]

{ #category : #private }
Expand Down

0 comments on commit 51d5ecd

Please sign in to comment.