r24054 by craig - Add in crash fix from commit r24053

scribus-commit scribus-commit at lists.scribus.net
Thu Oct 8 20:36:08 UTC 2020


Author: craig
Date: Thu Oct  8 20:36:08 2020
New Revision: 24054

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24054
Log:
Add in crash fix from commit r24053

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24054&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Thu Oct  8 20:36:08 2020
@@ -3272,6 +3272,8 @@
 
 bool ScribusDoc::lowerLayerByLevel(int layerLevel)
 {
+	if (layerLevel <= 0)
+		return false;
 	if (Layers.count() < 2)
 		return false;
 	if (UndoManager::undoEnabled())
@@ -3319,6 +3321,8 @@
 
 bool ScribusDoc::raiseLayerByLevel(int layerLevel)
 {
+	if (layerLevel >= Layers.count() - 1)
+		return false;
 	if (Layers.count() < 2)
 		return false;
 	if (UndoManager::undoEnabled())




More information about the scribus-commit mailing list