diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2010-09-06 09:16:22 +0000 |
|---|---|---|
| committer | Jasper van de Gronde <th.v.d.gronde@hccnet.nl> | 2010-09-06 09:16:22 +0000 |
| commit | 17fbfe1ce12dd215eb9a8984ff8da0ea4e2416ad (patch) | |
| tree | 7974c6e7493642ab70ff589bed0bcc71c09d75dc /src/desktop-style.cpp | |
| parent | make hpgl document height compatible with dxf (Bug 487052) (diff) | |
| download | inkscape-17fbfe1ce12dd215eb9a8984ff8da0ea4e2416ad.tar.gz inkscape-17fbfe1ce12dd215eb9a8984ff8da0ea4e2416ad.zip | |
Color preview in cursor
(bzr r9743)
Diffstat (limited to 'src/desktop-style.cpp')
| -rw-r--r-- | src/desktop-style.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index 5866b14fb..5615a8ea9 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -41,6 +41,7 @@ #include "xml/repr.h" #include "libnrtype/font-style-to-pos.h" #include "sp-path.h" +#include "event-context.h" #include "desktop-style.h" #include "svg/svg-icc-color.h" @@ -195,6 +196,10 @@ sp_desktop_set_style(SPDesktop *desktop, SPCSSAttr *css, bool change, bool write // 3. If nobody has intercepted the signal, apply the style to the selection if (!intercepted) { + // If we have an event context, update its cursor (TODO: it could be neater to do this with the signal sent above, but what if the signal gets intercepted?) + if (desktop->event_context) { + sp_event_context_update_cursor(desktop->event_context); + } // Remove text attributes if not text... // Do this once in case a zillion objects are selected. |
