View | Details | Raw Unified | Return to issue 100737
Collapse All | Expand All

(-)svtools/source/numbers/zformat.cxx (+10 lines)
Lines 57-62 Link Here
57
#include "numhead.hxx"
57
#include "numhead.hxx"
58
#include <unotools/digitgroupingiterator.hxx>
58
#include <unotools/digitgroupingiterator.hxx>
59
#include "nfsymbol.hxx"
59
#include "nfsymbol.hxx"
60
#include <vcl/svapp.hxx>
60
using namespace svt;
61
using namespace svt;
61
62
62
namespace {
63
namespace {
Lines 2434-2439 Link Here
2434
            break;
2435
            break;
2435
        }
2436
        }
2436
    }
2437
    }
2438
2439
    // Add LRM before minus sign if RTL
2440
    // The Unicode standard places a "minus/hyphen" to the right of a number,
2441
    // but in practice, Hebrew and Arabic users put a minus to the left of a number
2442
2443
    bool bRtl = Application::GetSettings().GetLayoutRTL();
2444
    sal_Unicode LRM = 0x200E;
2445
    if (OutString.GetBuffer()[0] == '-' && bRtl)
2446
	    OutString.Insert(LRM, 0);
2437
    return bRes;
2447
    return bRes;
2438
}
2448
}
2439
2449

Return to issue 100737