This patch indends to solve this bug:
http://bugs.freedesktop.org/show_bug.cgi?id=46968

The undo just assigned to SdrTextObj::aRect its previous value. Now it
calls NbcSetLogicRect() for this task. This function calls -- among others
-- NbcSetMinTextFrameHeight(), which is neccessary to avoid this bug.

Regards,
Uray M. János
From ab1e14c564a49e3eb05e3dd9ca4d9d9d537c101a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Uray=20M.=20J=C3=A1nos"?= <uray.ja...@gmail.com>
Date: Mon, 30 Jul 2012 11:42:16 +0200
Subject: [PATCH] fdo#46968 fixing undo of textbox resizing

Change-Id: Ic647e5c337987985f749b67113892a01f74ee8f9
---
 svx/source/svdraw/svdotext.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index d214f548..76b5b34 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1457,7 +1457,7 @@ void SdrTextObj::RestGeoData(const SdrObjGeoData& rGeo)
 { // RectsDirty is called by SdrObject
     SdrAttrObj::RestGeoData(rGeo);
     SdrTextObjGeoData& rTGeo=(SdrTextObjGeoData&)rGeo;
-    aRect  =rTGeo.aRect;
+    NbcSetLogicRect(rTGeo.aRect);
     aGeo   =rTGeo.aGeo;
     SetTextSizeDirty();
 }
-- 
1.7.7

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to