commit 5944e7600e2f31b7a5da5ae800cb71b683023815
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Tue Aug 11 00:49:24 2020 +0100

    Fix the bug reported by Antonio Campos Galán: sometimes the app would not detect that the Cube is solved.

diff --git a/src/main/java/org/distorted/objects/Cubit.java b/src/main/java/org/distorted/objects/Cubit.java
index 8faac2f0..5aba6282 100644
--- a/src/main/java/org/distorted/objects/Cubit.java
+++ b/src/main/java/org/distorted/objects/Cubit.java
@@ -215,9 +215,9 @@ class Cubit
       {
       case 0 : return true ;  // 'inside' cubit that does not lie on any face
       case 1 :                // cubit that lies inside one of the faces
-               float cubitCenterX = mCurrentPosition.get0();
-               float cubitCenterY = mCurrentPosition.get1();
-               float cubitCenterZ = mCurrentPosition.get2();
+               float cubitCenterX = mOrigPosition.get0();
+               float cubitCenterY = mOrigPosition.get1();
+               float cubitCenterZ = mOrigPosition.get2();
 
                Static4D quat1 = mParent.QUATS[quatIndex];
                Static4D quat2 = mParent.QUATS[mQuatIndex];
@@ -255,6 +255,7 @@ class Cubit
                    }
                  }
                return false;
+
       default: return false;  // edge or corner
       }
     }
