summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 213d10c)
raw | patch | inline | side by side (parent: 213d10c)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 7 Nov 2009 23:59:36 +0000 (23:59 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 7 Nov 2009 23:59:36 +0000 (23:59 +0000) |
src/extension/internal/cairo-render-context.cpp | patch | blob | history |
diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp
index cae49654323b12965c9314204762f331a600acf5..1594ced7d1b9f7d22136517dbd5a2f5a0cd8db48 100644 (file)
#endif
#ifdef CAIRO_HAS_PS_SURFACE
case CAIRO_SURFACE_TYPE_PS:
- if (!_eps && width > height) {
- surface = cairo_ps_surface_create_for_stream(Inkscape::Extension::Internal::_write_callback, _stream, height, width);
- cairo_matrix_init (&ctm, 0, -1, 1, 0, 0, 0);
- cairo_matrix_translate (&ctm, -width, 0);
- cairo_ps_surface_dsc_begin_page_setup (surface);
- cairo_ps_surface_dsc_comment (surface, "%%PageOrientation: Landscape");
- } else {
- surface = cairo_ps_surface_create_for_stream(Inkscape::Extension::Internal::_write_callback, _stream, width, height);
- }
+ surface = cairo_ps_surface_create_for_stream(Inkscape::Extension::Internal::_write_callback, _stream, width, height);
if(CAIRO_STATUS_SUCCESS != cairo_surface_status(surface)) {
return FALSE;
}