[gnome-flashback] screenshot: fix a typo
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] screenshot: fix a typo
- Date: Wed, 28 Sep 2016 17:43:37 +0000 (UTC)
commit ae7fa236e611e3ac434dd71e1ccadb3cb2e754ac
Author: Antonio Ospite <ao2 ao2 it>
Date: Wed Sep 28 18:34:13 2016 +0200
screenshot: fix a typo
The cursor was never included in screenshots because of a typo
about the screenshot type. There is a comment which explains the
reasoning behind the intended check, but the code is not following.
https://bugzilla.gnome.org/show_bug.cgi?id=772133
gnome-flashback/libscreenshot/gf-screenshot.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libscreenshot/gf-screenshot.c b/gnome-flashback/libscreenshot/gf-screenshot.c
index abfebe5..646d85e 100644
--- a/gnome-flashback/libscreenshot/gf-screenshot.c
+++ b/gnome-flashback/libscreenshot/gf-screenshot.c
@@ -715,7 +715,7 @@ take_screenshot_real (GfScreenshot *screenshot,
/* If we have a selected area, there were by definition no cursor in the
* screenshot. */
- if (include_cursor && type == SCREENSHOT_AREA)
+ if (include_cursor && type != SCREENSHOT_AREA)
{
GdkCursor *cursor;
GdkPixbuf *cursor_pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]