Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 914884
Collapse All | Expand All

(-)a/src/attributes.cpp (-1 / +1 lines)
Lines 142-148 static SPStyleProp const props[] = { Link Here
142
    /* SPPage */
142
    /* SPPage */
143
    {SPAttr::PAGE_MARGIN, "margin"},
143
    {SPAttr::PAGE_MARGIN, "margin"},
144
    {SPAttr::PAGE_BLEED, "bleed"},
144
    {SPAttr::PAGE_BLEED, "bleed"},
145
    {SPAttr::PAGE_SIZE, "page-size"},
145
    {SPAttr::PAGE_SIZEx, "page-size"},
146
    /* SPGrid */
146
    /* SPGrid */
147
    {SPAttr::ORIGINX, "originx"},
147
    {SPAttr::ORIGINX, "originx"},
148
    {SPAttr::ORIGINY, "originy"},
148
    {SPAttr::ORIGINY, "originy"},
(-)a/src/attributes.h (-1 / +1 lines)
Lines 141-147 enum class SPAttr { Link Here
141
    /* SPPage */
141
    /* SPPage */
142
    PAGE_MARGIN,
142
    PAGE_MARGIN,
143
    PAGE_BLEED,
143
    PAGE_BLEED,
144
    PAGE_SIZE,
144
    PAGE_SIZEx,
145
    /* SPGrid */
145
    /* SPGrid */
146
    ORIGINX,
146
    ORIGINX,
147
    ORIGINY,
147
    ORIGINY,
(-)a/src/object/sp-page.cpp (-2 / +2 lines)
Lines 42-48 void SPPage::build(SPDocument *document, Inkscape::XML::Node *repr) Link Here
42
    SPObject::build(document, repr);
42
    SPObject::build(document, repr);
43
43
44
    this->readAttr(SPAttr::INKSCAPE_LABEL);
44
    this->readAttr(SPAttr::INKSCAPE_LABEL);
45
    this->readAttr(SPAttr::PAGE_SIZE);
45
    this->readAttr(SPAttr::PAGE_SIZEx);
46
    this->readAttr(SPAttr::X);
46
    this->readAttr(SPAttr::X);
47
    this->readAttr(SPAttr::Y);
47
    this->readAttr(SPAttr::Y);
48
    this->readAttr(SPAttr::WIDTH);
48
    this->readAttr(SPAttr::WIDTH);
Lines 85-91 void SPPage::set(SPAttr key, const gchar *value) Link Here
85
        case SPAttr::PAGE_BLEED:
85
        case SPAttr::PAGE_BLEED:
86
            this->bleed.readOrUnset(value);
86
            this->bleed.readOrUnset(value);
87
            break;
87
            break;
88
        case SPAttr::PAGE_SIZE:
88
        case SPAttr::PAGE_SIZEx:
89
            this->_size_label = value ? std::string(value) : "";
89
            this->_size_label = value ? std::string(value) : "";
90
            break;
90
            break;
91
        default:
91
        default:

Return to bug 914884