Index: promptdialog.inc
===================================================================
--- promptdialog.inc	(revision 8965)
+++ promptdialog.inc	(working copy)
@@ -326,19 +326,20 @@
     end;
   end;
 
-  // calculate the complete width without the spacing around all
+  // calculate the text offset from left
   If FBitmap <> nil then
     cMinLeft := cBitmapX + max(32,FBitmap.Width) + cLabelSpacing
   else
     cMinLeft := 0;
 
-  reqWidth := cMinLeft + TextBox.Right;
+  // calculate required width (offset + text width + offset)
+  reqWidth := 2 * cMinLeft + TextBox.Right;
   if reqWidth < reqBtnWidth then
     reqWidth:= reqBtnWidth;
 
   // center the text
-  OffsetRect(TextBox, cLabelSpacing + cMinLeft
-                      +((reqWidth - cMinLeft - TextBox.Right) div 2),
+  OffsetRect(TextBox, cLabelSpacing
+                      +((reqWidth - TextBox.Right) div 2),
                       cLabelSpacing);
 
   // calculate the height of the text+icon





