Ticket #2437: 2437.patch

File 2437.patch, 769 bytes (added by diana, 15 years ago)
  • src/main/java/org/sophie2/base/model/text/mvc/TextModelLogic.java

    ### Eclipse Workspace Patch 1.0
    #P org.sophie2.base.model.text
     
    516516                                }  
    517517                        } 
    518518 
    519                         boolean oldValue = text.getStyleValue(attr, selection) == null ?  
     519                        boolean oldValue = text.getEnd() == 0 
     520                        || text.getStyleValue(attr, selection) == null ?  
    520521                                        false : (Boolean)text.getStyleValue(attr, selection); 
    521522                        Object attrValue = !oldValue && !(Boolean) textModel.inputStyle().get().getValue(attr); 
    522523                        // Trim the params.