diff --git a/src/Mod/Ship/shipAreasCurve/TaskPanel.py b/src/Mod/Ship/shipAreasCurve/TaskPanel.py
index a218c59a0..9b43c99c2 100644
--- a/src/Mod/Ship/shipAreasCurve/TaskPanel.py
+++ b/src/Mod/Ship/shipAreasCurve/TaskPanel.py
@@ -32,6 +32,7 @@ import Preview
import Instance
from shipUtils import Paths, Translator
from surfUtils import Geometry
+from shipHydrostatics import Tools as Hydrostatics
class TaskPanel:
def __init__(self):
@@ -187,8 +188,7 @@ class TaskPanel:
if draftFP < 0.0:
draftFP = 0.0
# Calculate hydrostatics involved
- disp = 0.0
- xcb = 0.0
+ disp = Hydrostatics.Displacement(self.ship,self.form.draft.value(),self.form.trim.value())
# Prepare the string in html format
string = 'L = %g [m]
' % (self.ship.Length)
string = string + 'B = %g [m]
' % (self.ship.Beam)
@@ -196,8 +196,8 @@ class TaskPanel:
string = string + 'Trim = %g [degrees]
' % (self.form.trim.value())
string = string + 'TAP = %g [m]
' % (draftAP)
string = string + 'TFP = %g [m]