Mantis - tweak
Viewing Issue Advanced Details
1277 Any minor always 05-27-05 14:35 05-27-05 14:35
jens  
 
normal  
new  
open  
none    
none  
0001277: endless loop in drawing a CTextEditor
If an CTextEditor has a fieldReference of a text as player and the text editor
lies over the player, then tweak gets into an endless loop.

example code:

l := CPlayer new.
l text := 'hallo'.
l openInHand.

e := CInputField new.
e player := l fieldNamed: #text.
e openInHand.

all goes fine until one places the editor over the label and the text in the texteditor gets smaller than in the label. Than tweak hangs in an endless loop.

User Interrupt
TextFontChange>>emphasizeScanner:
[] in MultiDisplayScanner(MultiCharacterScanner)>>setFont {[:att | att emphasizeScanner: self]}
Array(SequenceableCollection)>>do:
MultiDisplayScanner(MultiCharacterScanner)>>setFont
MultiDisplayScanner>>setFont
MultiDisplayScanner>>setStopConditions
MultiDisplayScanner>>endOfRun
MultiDisplayScanner>>displayLine:offset:leftInRun:
CTextParagraph>>displayOn:using:at:
CTransformCanvas>>paragraph:bounds:color:
[] in CCostumeTextHolder>>drawOn:in: {[:cc | borderWidth > 0 ifTrue: [self drawBorderedTextOn: cc] ifFalse: [c...]}
CTransformCanvas>>translateBy:during:
CCostumeTextHolder>>drawOn:in:
[] in CPrimitiveCostume>>drawText:on:in: {[:cc | textContainer drawOn: aCanvas in: drawingBounds]}
CTransformCanvas>>clipBy:during:
CPrimitiveCostume>>drawText:on:in:
CPrimitiveCostume>>drawOn:in:
CPrimitiveCostume>>drawOn:
[] in CPrimitiveCostume>>fullDrawOn: {[self drawOn: cache. self drawPenTrailsOn: cache]}
CTransformCanvas>>roundCornersOf:in:during:

emphasizeScanner: scanner
    "Set the font for text display"
    scanner setFont: fontNumber
Proceed
Restart
Into
Over
Through
Full Stack
Where
no timeStamp as yet unclassified 15 implementors in no change set
self
all inst vars
fontNumber


thisContext
all temp vars
scanner



There are no notes attached to this issue.