From 46763efb75ee92e0979adfd3988607c0a32eaf25 Mon Sep 17 00:00:00 2001
From: Jason Smith <jason.inet@gmail.com>
Date: Wed, 9 Oct 2019 17:48:00 -0700
Subject: [PATCH] Fix tool-change move with hotend offset (#15491)

---
 Marlin/src/module/tool_change.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/src/module/tool_change.cpp b/Marlin/src/module/tool_change.cpp
index 0af205695b..b392e751d5 100644
--- a/Marlin/src/module/tool_change.cpp
+++ b/Marlin/src/module/tool_change.cpp
@@ -906,7 +906,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
       #endif
 
       #if HAS_HOTEND_OFFSET
-        xyz_pos_t diff = hotend_offset[new_tool];
+        xyz_pos_t diff = hotend_offset[new_tool] - hotend_offset[old_tool];
         #if ENABLED(DUAL_X_CARRIAGE)
           diff.x = 0;
         #endif