diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-08-04 21:47:29 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-08-04 21:47:29 -0400 |
commit | b4cfda4e811852a1ad11aa3686c95600b1d5d0c0 (patch) | |
tree | 021c6136b69b307ef15bf61bb240965faafd9131 | |
parent | c63d3b1b1fbe7a796f2722b467830ce726b78619 (diff) | |
download | pango-b4cfda4e811852a1ad11aa3686c95600b1d5d0c0.tar.gz |
[HB] Save edit even if not writeable
-rw-r--r-- | pango/opentype/hb-open-types-private.hh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pango/opentype/hb-open-types-private.hh b/pango/opentype/hb-open-types-private.hh index 05619df3..e922e277 100644 --- a/pango/opentype/hb-open-types-private.hh +++ b/pango/opentype/hb-open-types-private.hh @@ -232,10 +232,8 @@ _hb_sanitize_fini (hb_sanitize_context_t *context, static HB_GNUC_UNUSED bool _hb_sanitize_edit (hb_sanitize_context_t *context) { - bool perm = hb_blob_try_writeable_inplace (context->blob); - if (perm) - context->edit_count++; - return perm; + context->edit_count++; + return hb_blob_try_writeable_inplace (context->blob); } #define SANITIZE_ARG_DEF \ |