summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 639995e)
raw | patch | inline | side by side (parent: 639995e)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Sat, 3 Apr 2010 12:47:02 +0000 (14:47 +0200) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Sat, 3 Apr 2010 12:47:02 +0000 (14:47 +0200) |
src/desktop.cpp | patch | blob | history | |
src/helper/pixbuf-ops.cpp | patch | blob | history | |
src/selection-chemistry.cpp | patch | blob | history |
diff --git a/src/desktop.cpp b/src/desktop.cpp
index c45cf80044c3c238fbd0387c367cdb6742f4a761..1953ae2a6e8db730bfff77ff61f52a8f398ba6dd 100644 (file)
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
void
SPDesktop::onDocumentResized (gdouble width, gdouble height)
{
- _doc2dt[5] = height;
sp_canvas_item_affine_absolute (SP_CANVAS_ITEM (drawing), _doc2dt);
Geom::Rect const a(Geom::Point(0, 0), Geom::Point(width, height));
SP_CTRLRECT(page)->setRectangle(a);
index 3be63aa686abd54794b5531bb92652068126058f..c26d55b8b39c82372fea443172b2a109ad3c1947 100644 (file)
double padding = 1.0;
Geom::Point origin(screen.min()[Geom::X],
- sp_document_height(doc) - screen[Geom::Y].extent() - screen.min()[Geom::Y]);
+ screen.min()[Geom::Y]);
origin[Geom::X] = origin[Geom::X] + (screen[Geom::X].extent() * ((1 - padding) / 2));
origin[Geom::Y] = origin[Geom::Y] + (screen[Geom::Y].extent() * ((1 - padding) / 2));
index 7ac2e5471a432f25420ef283040fd95e205560ea..452a4ff9d7ab762a379c685f39df399a259aefc7 100644 (file)
}
// calculate the transform to be applied to objects to move them to 0,0
- Geom::Point move_p = Geom::Point(0, sp_document_height(doc)) - *c;
- move_p[Geom::Y] = -move_p[Geom::Y];
- Geom::Matrix move = Geom::Matrix(Geom::Translate(move_p));
+ Geom::Point move_p = -*c;
+ Geom::Matrix move = Geom::Translate(move_p);
GSList *items = g_slist_copy((GSList *) selection->itemList());
}
// calculate the transform to be applied to objects to move them to 0,0
- Geom::Point move_p = Geom::Point(0, sp_document_height(doc)) - (r->min() + Geom::Point(0, r->dimensions()[Geom::Y]));
- move_p[Geom::Y] = -move_p[Geom::Y];
+ Geom::Point move_p = -(r->min() + Geom::Point(0, r->dimensions()[Geom::Y]));
Geom::Matrix move = Geom::Matrix(Geom::Translate(move_p));
GSList *items = g_slist_copy((GSList *) selection->itemList());