Accepting request 254513 from home:oholecek:branches:Education

add 0001-fix-ctrl-enter-crash.patch: fix crash when adding new element

OBS-URL: https://build.opensuse.org/request/show/254513
OBS-URL: https://build.opensuse.org/package/show/Education/semantik?expand=0&rev=17
This commit is contained in:
Marguerite Su 2014-10-07 14:11:30 +00:00 committed by Git OBS Bridge
parent 1068d88679
commit f438cff2d9
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,18 @@
commit 066ba6289f47493123e7e51ac4f779cecee3825e
Author: Thomas Nagy <tnagy2pow10@gmail.com>
Date: Thu Sep 4 18:47:42 2014 +0200
Fixed a crash on Ctrl+Return
diff --git a/src/canvas_view.cpp b/src/canvas_view.cpp
index 2cd0859..4f9ee00 100644
--- a/src/canvas_view.cpp
+++ b/src/canvas_view.cpp
@@ -1244,6 +1244,7 @@ void canvas_view::reorganize() {
// now apply the layout for undo/redo
mem_move *mv = new mem_move(m_oMediator);
+ mv->sel.clear();
foreach(data_item* x, m_oMediator->m_oItems.values()) {
canvas_item *v = m_oItems[x->m_iId];
QPointF p = v->pos();

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 7 13:43:11 UTC 2014 - oholecek@suse.com
- add 0001-fix-ctrl-enter-crash.patch: fix crash when adding new
element
-------------------------------------------------------------------
Mon Sep 15 13:54:44 UTC 2014 - i@marguerite.su

View File

@ -25,6 +25,8 @@ Group: Productivity/Office/Other
Url: http://code.google.com/p/semantik
Source0: http://ftp.waf.io/pub/release/%{name}-%{version}.tar.bz2
Source1: %{name}.1
# PATCH-FIX-UPSTREAM 0001-fix-ctrl-enter-crash.patch
Patch0: 0001-fix-ctrl-enter-crash.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libQtWebKit-devel
@ -52,6 +54,7 @@ to create general-purpose documents through the use of mindmaps.
%prep
%setup -q
%patch0 -p1
%build