[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Mar 1 08:36:55 PST 2011
sc/source/ui/dbgui/pvlaydlg.cxx | 10 ++++++++++
sc/source/ui/inc/pvlaydlg.hxx | 1 +
2 files changed, 11 insertions(+)
New commits:
commit d2d2a7069b77369cbb420cdeca16d2109c1be636
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Tue Mar 1 11:35:57 2011 -0500
Refresh the field view when the source range changes.
Not doing so would cause phantom buttons in the field windows that
you can see but you can't touch....
diff --git a/sc/source/ui/dbgui/pvlaydlg.cxx b/sc/source/ui/dbgui/pvlaydlg.cxx
index d4bbe1b..4da0db7 100644
--- a/sc/source/ui/dbgui/pvlaydlg.cxx
+++ b/sc/source/ui/dbgui/pvlaydlg.cxx
@@ -1469,6 +1469,16 @@ void ScDPLayoutDlg::UpdateSrcRange()
aPageArr.clear();
InitFields();
+ RepaintFields();
+}
+
+void ScDPLayoutDlg::RepaintFields()
+{
+ Rectangle aRect; // currently has no effect whatsoever.
+ aWndPage.Paint(aRect);
+ aWndCol.Paint(aRect);
+ aWndRow.Paint(aRect);
+ aWndData.Paint(aRect);
}
ScDPFieldControlBase* ScDPLayoutDlg::GetFieldWindow(ScDPFieldType eType)
diff --git a/sc/source/ui/inc/pvlaydlg.hxx b/sc/source/ui/inc/pvlaydlg.hxx
index 9d0e215..45d9e25 100644
--- a/sc/source/ui/inc/pvlaydlg.hxx
+++ b/sc/source/ui/inc/pvlaydlg.hxx
@@ -217,6 +217,7 @@ private:
::std::vector<PivotField>& rDataFields );
void UpdateSrcRange();
+ void RepaintFields();
ScDPFieldControlBase* GetFieldWindow(ScDPFieldType eType);
More information about the Libreoffice-commits
mailing list