~ubuntu-branches/ubuntu/dapper/poppler/dapper-security

« back to all changes in this revision

Viewing changes to poppler/Annot.cc

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-03-06 18:42:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060306184244-oomqyiqr7cgncp2c
Tags: 0.5.1-0ubuntu1
* New upstream version:
  - Support for embedded files.
  - Handle 0-width lines correctly.
  - Avoid external file use when opening fonts.
  - Only use vector fonts returned from fontconfig (#5758).
  - Fix scaled 1x1 pixmaps use for drawing lines (#3387).
  - drawSoftMaskedImage support in cairo backend.
  - Misc bug fixes: #5922, #5946, #5749, #5952, #4030, #5420.
* debian/control.in, debian/libpoppler0c2.dirs, 
  debian/libpoppler0c2-glib.dirs, debian/libpoppler0c2-glib.install,
  debian/libpoppler0c2.install, debian/libpoppler0c2-qt.dirs,
  debian/libpoppler0c2-qt.install, debian/rules:
  - updated for the soname change
* debian/patches/000_splash_build_fix.patch:
  - fix build when using splash
* debian/patches/001_fixes_for_fonts_selection.patch:
  - fix with the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include "Catalog.h"
19
19
#include "Gfx.h"
20
20
#include "Lexer.h"
 
21
#include "UGooString.h"
21
22
#include "Annot.h"
22
23
 
23
24
//------------------------------------------------------------------------
210
211
 
211
212
    // build the appearance stream dictionary
212
213
    appearDict.initDict(xref);
213
 
    appearDict.dictAdd(copyString("Length"),
214
 
                       obj1.initInt(appearBuf->getLength()));
215
 
    appearDict.dictAdd(copyString("Subtype"), obj1.initName("Form"));
 
214
    appearDict.dictAdd("Length", obj1.initInt(appearBuf->getLength()));
 
215
    appearDict.dictAdd("Subtype", obj1.initName("Form"));
216
216
    obj1.initArray(xref);
217
217
    obj1.arrayAdd(obj2.initReal(0));
218
218
    obj1.arrayAdd(obj2.initReal(0));
219
219
    obj1.arrayAdd(obj2.initReal(xMax - xMin));
220
220
    obj1.arrayAdd(obj2.initReal(yMax - yMin));
221
 
    appearDict.dictAdd(copyString("BBox"), &obj1);
 
221
    appearDict.dictAdd("BBox", &obj1);
222
222
 
223
223
    // find the resource dictionary
224
224
    dict->lookup("DR", &drObj);
243
243
      }
244
244
    }
245
245
    if (drObj.isDict()) {
246
 
      appearDict.dictAdd(copyString("Resources"), drObj.copy(&obj1));
 
246
      appearDict.dictAdd("Resources", drObj.copy(&obj1));
247
247
    }
248
248
    drObj.free();
249
249