From 868c0325783d8cc106c857101ca71fa9fdb6097f Mon Sep 17 00:00:00 2001 From: lethosor Date: Thu, 5 Apr 2018 02:16:40 -0400 Subject: [PATCH] liquids: initialize range dimensions --- docs/changelog.txt | 3 +++ plugins/liquids.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index aed7cf082..80a3cf92f 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -36,6 +36,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ================================================================================ # Future +## Fixes +- `liquids`: fixed "range" command to default to 1 for dimensions consistently + ================================================================================ # 0.44.09-r1 diff --git a/plugins/liquids.cpp b/plugins/liquids.cpp index f478ddccb..f0dcf1ce3 100644 --- a/plugins/liquids.cpp +++ b/plugins/liquids.cpp @@ -271,7 +271,7 @@ command_result df_liquids (color_ostream &out_, vector & parameters) } else if(command == "range" || command == "r") { - int width, height, z_levels; + int width = 1, height = 1, z_levels = 1; command_result res = parseRectangle(out, commands, 1, commands.size(), width, height, z_levels); if (res != CR_OK)