This fixes the bidi caret that got broken when the caret class was introduced; this commit breaks everything but the win32 build -- sorry guys, but it could not be helped.
The critical changes are to gr_Graphics::saveRectangle() and gr_Graphics::restoreRectangle(). These functions now take an extra index parameter making it possible to save and restore a number of rectangles at the same time; the win32 versions are implemented, others are not. Although the carect class only needs three rectangles for now, it would be best if the implementations did not impose any limits (the win32 version is using UT_Vector's). files: gr_Graphics.h; gr_Win32Graphics.h/cpp; gr_Caret.h/cpp Tomas
