summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kits/interface/TextView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kits/interface/TextView.cpp b/src/kits/interface/TextView.cpp
index 7aee6a3..e824a54 100644
--- a/src/kits/interface/TextView.cpp
+++ b/src/kits/interface/TextView.cpp
@@ -434,7 +434,7 @@ BTextView::Archive(BMessage* data, bool deep) const
if (err == B_OK)
err = data->AddBool("_nedit", !fEditable);
- if (err == B_OK && fDisallowedChars != NULL) {
+ if (err == B_OK && fDisallowedChars != NULL && fDisallowedChars->CountItems() > 0) {
err = data->AddData("_dis_ch", B_RAW_TYPE, fDisallowedChars->Items(),
fDisallowedChars->CountItems() * sizeof(int32));
}