From d64a4af105cae1b7ee958e6047eb90837907af23 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Thu, 2 Apr 2020 19:47:28 +0200 Subject: [PATCH] Bugfix - clone last entry, not first --- src/scraplang/apply.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scraplang/apply.cpp b/src/scraplang/apply.cpp index 415854f..c96f639 100644 --- a/src/scraplang/apply.cpp +++ b/src/scraplang/apply.cpp @@ -32,6 +32,7 @@ #include #include #include +#include namespace duck { namespace sl { #if defined(APPLY_VERBOSE) @@ -122,7 +123,7 @@ namespace duck { namespace sl { std::fill_n( std::back_inserter(parOut), std::max(m_expected_size, parOut.size()) - parOut.size(), - parOut.front() + parOut.back() ); } m_retval = std::move(parOut);