From 686fa35405d426b0230570faa1a587278f369f1d Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 11 Jan 2021 14:46:51 +0000 Subject: [PATCH] Make sure enum stays encoded correctly in JSON. --- include/view/view_controls.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/view/view_controls.h b/include/view/view_controls.h index b0f33fd211..86250c36a7 100644 --- a/include/view/view_controls.h +++ b/include/view/view_controls.h @@ -42,9 +42,10 @@ class VIEW; ///< Action to perform when the mouse is dragged +// Warning: these are encoded as integers in the file, so don't change their values enum class MOUSE_DRAG_ACTION { - DRAG_ANY, + DRAG_ANY = -2, DRAG_SELECTED, SELECT, ZOOM,