Ticket #13520: TextView.diff

File TextView.diff, 590 bytes (added by jalopeura, 7 years ago)

patch

  • src/kits/interface/TextView.cpp

    diff --git a/src/kits/interface/TextView.cpp b/src/kits/interface/TextView.cpp
    index 7aee6a3..e824a54 100644
    a b BTextView::Archive(BMessage* data, bool deep) const  
    434434    if (err == B_OK)
    435435        err = data->AddBool("_nedit", !fEditable);
    436436
    437     if (err == B_OK && fDisallowedChars != NULL) {
     437    if (err == B_OK && fDisallowedChars != NULL && fDisallowedChars->CountItems() > 0) {
    438438        err = data->AddData("_dis_ch", B_RAW_TYPE, fDisallowedChars->Items(),
    439439            fDisallowedChars->CountItems() * sizeof(int32));
    440440    }