[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/source
Kohei Yoshida
kohei.yoshida at gmail.com
Thu Mar 21 19:08:05 PDT 2013
sc/source/ui/undo/undocell.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 41854c237d02ffea5454aff9603352046fbf80ae
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Thu Mar 21 22:09:53 2013 -0400
Don't forget to check for NULL pointer here, else it would crash.
Change-Id: I497a8f5a6210e0b03fb12adc376cfa3a11d2d47c
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index 574ddba..868dff5 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -186,7 +186,8 @@ struct DeleteCell : std::unary_function<ScUndoEnterData::Value, void>
{
void operator() (ScUndoEnterData::Value& rVal)
{
- rVal.mpCell->Delete();
+ if (rVal.mpCell)
+ rVal.mpCell->Delete();
}
};
More information about the Libreoffice-commits
mailing list