diff --git a/src/FrameReflower/Table.php b/src/FrameReflower/Table.php
index <HASH>..<HASH> 100644
--- a/src/FrameReflower/Table.php
+++ b/src/FrameReflower/Table.php
@@ -437,18 +437,20 @@ class Table extends AbstractFrameReflower
             } else {
                 $left = $right = $diff / 2;
             }
-
-            $style->margin_left = $left;
-            $style->margin_right = $right;
         } else {
             if ($left === "auto") {
-                $left = (float)$style->length_in_pt($cb["w"], $cb["w"]) - (float)$style->length_in_pt($right, $cb["w"]) - (float)$style->length_in_pt($width, $cb["w"]);
+                $right = (float)$style->length_in_pt($right, $cb["w"]);
+                $left = $diff - $right;
             }
             if ($right === "auto") {
                 $left = (float)$style->length_in_pt($left, $cb["w"]);
+                $right = $diff - $left;
             }
         }
 
+        $style->margin_left = $left;
+        $style->margin_right = $right;
+
         list($x, $y) = $frame->get_position();
 
         // Determine the content edge
Clean up left/right margin resolving for tables

This is just a quick fix-up. The logic should ideally be shared with the
BlockFrameReflower one.