summaryrefslogtreecommitdiffstats
path: root/src/display/drawing-image.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2014-04-18 23:08:21 +0000
committerMartin Owens <doctormo@gmail.com>2014-04-18 23:08:21 +0000
commit7744bd7a4bdfedd8d0d04b647fd6c0e80a603cb7 (patch)
treebe9121b2060fd83104cbb4f414e5f0ecf64ce92e /src/display/drawing-image.cpp
parentLatvian translation update (diff)
downloadinkscape-7744bd7a4bdfedd8d0d04b647fd6c0e80a603cb7.tar.gz
inkscape-7744bd7a4bdfedd8d0d04b647fd6c0e80a603cb7.zip
Add image rendering option for outlines. Setup desktop preferences observer.
(bzr r13291.1.1)
Diffstat (limited to 'src/display/drawing-image.cpp')
-rw-r--r--src/display/drawing-image.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/display/drawing-image.cpp b/src/display/drawing-image.cpp
index 5844c8b08..bec59384c 100644
--- a/src/display/drawing-image.cpp
+++ b/src/display/drawing-image.cpp
@@ -106,7 +106,10 @@ unsigned DrawingImage::_renderItem(DrawingContext &dc, Geom::IntRect const &/*ar
{
bool outline = _drawing.outline();
- if (!outline) {
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ bool imgoutline = prefs->getBool("/options/rendering/imageinoutlinemode", true);
+
+ if (!outline || imgoutline) {
if (!_pixbuf) return RENDER_OK;
Inkscape::DrawingContext::Save save(dc);
@@ -141,7 +144,7 @@ unsigned DrawingImage::_renderItem(DrawingContext &dc, Geom::IntRect const &/*ar
dc.paint(_opacity);
} else { // outline; draw a rect instead
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+
guint32 rgba = prefs->getInt("/options/wireframecolors/images", 0xff0000ff);
{ Inkscape::DrawingContext::Save save(dc);