r20230 by jghali - #13193, first part: fix issue when saving javascript related to mouse up/down action

scribus-commit scribus-commit at lists.scribus.net
Fri Jul 3 20:51:33 UTC 2015


Author: jghali
Date: Fri Jul  3 20:51:33 2015
New Revision: 20230

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20230
Log:
#13193, first part: fix issue when saving javascript related to mouse up/down action

Modified:
    trunk/Scribus/scribus/ui/annot.cpp

Modified: trunk/Scribus/scribus/ui/annot.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20230&path=/trunk/Scribus/scribus/ui/annot.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/annot.cpp (original)
+++ trunk/Scribus/scribus/ui/annot.cpp Fri Jul  3 20:51:33 2015
@@ -2060,10 +2060,10 @@
 			annotation.setActionType(Annotation::Action_JavaScript);
 			switch (ScrEdited)
 			{
-				case Annotation::Java_PressButton:
+				case Annotation::Java_ReleaseButton:
 					annotation.setAction(EditJava->toPlainText());
 					break;
-				case Annotation::Java_ReleaseButton:
+				case Annotation::Java_PressButton:
 					annotation.setD_act(EditJava->toPlainText());
 					break;
 				case Annotation::Java_EnterWidget:




More information about the scribus-commit mailing list