src/gui/text/qtextformat.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
child 33 3e2da88830cd
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
  3083         QTextFormat &f = formats.last();
  3083         QTextFormat &f = formats.last();
  3084         if (!f.d)
  3084         if (!f.d)
  3085             f.d = new QTextFormatPrivate;
  3085             f.d = new QTextFormatPrivate;
  3086         f.d->resolveFont(defaultFnt);
  3086         f.d->resolveFont(defaultFnt);
  3087 
  3087 
  3088         hashes.insert(hash, idx);
  3088         if (!hashes.contains(hash, idx))
       
  3089             hashes.insert(hash, idx);
  3089 
  3090 
  3090     } QT_CATCH(...) {
  3091     } QT_CATCH(...) {
  3091         formats.pop_back();
  3092         formats.pop_back();
  3092         QT_RETHROW;
  3093         QT_RETHROW;
  3093     }
  3094     }