Faculty of Information Technology
Software Engineering Group

Ticket #112: libtool2_fix_1_of_1_rev_a23601cc0b03_Issue__112__Fix_DNU_when_saving_window_spec_in_UI_Painter.patch

File libtool2_fix_1_of_1_rev_a23601cc0b03_Issue__112__Fix_DNU_when_saving_window_spec_in_UI_Painter.patch, 2.0 KB (added by Jan Vrany, 3 years ago)
  • new file .hgignore

    # HG changeset patch
    # User Jan Vrany <jan.vrany@fit.cvut.cz>
    # Date 1484783100 0
    #      Wed Jan 18 23:45:00 2017 +0000
    # Branch jv
    # Node ID a23601cc0b03fee52a734e3a5dd1b5090046684e
    # Parent  d9f2ca15f146fe7a6af5cd8c4a5dd3e9387ff6ec
    Issue #112: Fix DNU when saving window spec in UI Painter
    
    For some reason, `UIPainter` sent `#buildAndMergeFromClass:`, passing down
    a class name rather than class itself (which is what the method expects,
    resulting in DNU). Fix is easy: pass down a class itself.
    
    https://swing.fit.cvut.cz/projects/stx-jv/ticket/112
    
    diff -r d9f2ca15f146 -r a23601cc0b03 .hgignore
    - +  
     1
     2syntax: glob
     3*Init.c   
     4makefile
     5*.so
     6*.H
     7*.o
     8*.STH
     9*.sc
     10objbc
     11objvc
     12*.class
     13java/libs/*.jar
     14java/libs-src/*.jar
     15*-Test.xml
     16st.chg
  • UIPainter.st

    diff -r d9f2ca15f146 -r a23601cc0b03 UIPainter.st
    a b  
    58055805doDefineClassAndSelector
    58065806    "launches a dialog for defining class, superclass, and selector of the application"
    58075807
    5808     |again readFromModelKeyed|
     5808    | again readFromModelKeyed |
    58095809
    58105810    readFromModelKeyed := [:aKey| |ret|
    58115811        ret := (self aspectValueFor:aKey).
     
    58585858    specClassName := specClassName isBehavior
    58595859                        ifTrue:[specClassName name]
    58605860                        ifFalse:[specClassName].
     5861    specClass := self resolveName: specClassName. 
    58615862
    58625863    self clearModifiedFlag.
    5863     self helpTool buildAndMergeFromClass:specClassName.
     5864    self helpTool buildAndMergeFromClass:specClass.
    58645865    self updateInfoLabel
    58655866
    5866     "Modified: / 16.7.1998 / 18:26:33 / cg"
     5867    "Modified: / 16-07-1998 / 18:26:33 / cg"
     5868    "Modified: / 18-01-2017 / 23:38:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    58675869!
    58685870
    58695871doDefineGrid
     
    75617563
    75627564version_CVS
    75637565    ^ '$Header$'
     7566!
     7567
     7568version_HG
     7569
     7570    ^ '$Changeset: <not expanded> $'
    75647571! !
    75657572
    75667573